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:
jkilpatr 2017-05-12 15:16:35 -04:00
parent 8c0a21fc19
commit f90b8b75d9

View File

@ -6,7 +6,7 @@
dest: /etc/ssh/sshd_config
line: "UseDNS no"
state: present
insertbefore: '^Match'
insertbefore: BOF
when: "{{disable_ssh_dns}}"
become: true
become_user: root