Skip to content

Commit

Permalink
Place sshd-config changes at the begining of the file
Browse files Browse the repository at this point in the history
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....

ansible/ansible#20582

Change-Id: I450f4c880bcabfc2a6025130608f5dc6c38eb43f
  • Loading branch information
jkilpatr committed May 12, 2017
1 parent 8c0a21f commit f90b8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/install/roles/no-sshd-dns/tasks/main.yml
Expand Up @@ -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
Expand Down

0 comments on commit f90b8b7

Please sign in to comment.