Skip to content

Commit ffb4c25

Browse files
committed
additional spacing fixes
removed extra spaces in the {regex...} added end of file line feed
1 parent 738a7e3 commit ffb4c25

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ansible/roles/host_setup/tasks/disable_icmp_redirect.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@
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+

ansible/roles/host_setup/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,4 @@
173173

174174
- name: Disable ICMP Redirects
175175
ansible.builtin.include_tasks: disable_icmp_redirect.yml
176+

0 commit comments

Comments
 (0)