File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
ansible/roles/host_setup/tasks Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 4848 line : " {{ item.line }}"
4949 state : present
5050 with_items :
51- - { regexp: '^net.ipv4.conf.all.accept_redirects', line: 'net.ipv4.conf.all.accept_redirects = 0' }
52- - { regexp: '^net.ipv4.conf.default.accept_redirects', line: 'net.ipv4.conf.default.accept_redirects = 0' }
53- - { regexp: '^net.ipv4.conf.all.secure_redirects', line: 'net.ipv4.conf.all.secure_redirects = 0' }
54- - { regexp: '^net.ipv4.conf.default.secure_redirects', line: 'net.ipv4.conf.default.secure_redirects = 0' }
51+ - {regexp: '^net.ipv4.conf.all.accept_redirects', line: 'net.ipv4.conf.all.accept_redirects = 0'}
52+ - {regexp: '^net.ipv4.conf.default.accept_redirects', line: 'net.ipv4.conf.default.accept_redirects = 0'}
53+ - {regexp: '^net.ipv4.conf.all.secure_redirects', line: 'net.ipv4.conf.all.secure_redirects = 0'}
54+ - {regexp: '^net.ipv4.conf.default.secure_redirects', line: 'net.ipv4.conf.default.secure_redirects = 0'}
5555
5656- name : Apply changes to /etc/sysctl.conf
5757 ansible.builtin.command : sysctl -p /etc/sysctl.conf
58- become : true
58+ become : true
59+
Original file line number Diff line number Diff line change 173173
174174- name : Disable ICMP Redirects
175175 ansible.builtin.include_tasks : disable_icmp_redirect.yml
176+
You can’t perform that action at this time.
0 commit comments