Commit 50b74561 authored by John Hackett's avatar John Hackett

Add local hostname's ssh keys to known_hosts

parent cddf258b
......@@ -60,7 +60,7 @@
shell: "ssh-keyscan -H 127.0.0.1 >> /var/lib/one/.ssh/known_hosts"
become_user: oneadmin
- name: ssh keyscan (jessie)
shell: "ssh-keyscan -H jessie >> /var/lib/one/.ssh/known_hosts"
shell: "ssh-keyscan -H {{ ansible_hostname }} >> /var/lib/one/.ssh/known_hosts"
become_user: oneadmin
- name: ssh keyscan (localhost)
shell: "ssh-keyscan -H localhost >> /var/lib/one/.ssh/known_hosts"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment