Place sshd-config changes at the begining of the file
So my test case for the last commit was one match statement, rhos-11 uses two, Ansible interprets "insert before" as inserting before the *second* match.... https://github.com/ansible/ansible/issues/20582 Change-Id: I450f4c880bcabfc2a6025130608f5dc6c38eb43f
This commit is contained in:
parent
8c0a21fc19
commit
f90b8b75d9
@ -6,7 +6,7 @@
|
|||||||
dest: /etc/ssh/sshd_config
|
dest: /etc/ssh/sshd_config
|
||||||
line: "UseDNS no"
|
line: "UseDNS no"
|
||||||
state: present
|
state: present
|
||||||
insertbefore: '^Match'
|
insertbefore: BOF
|
||||||
when: "{{disable_ssh_dns}}"
|
when: "{{disable_ssh_dns}}"
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user