|
@@ -21,7 +21,7 @@ |
|
|
- name: write ssh_known_hosts file |
|
|
- name: write ssh_known_hosts file |
|
|
local_action: known_hosts |
|
|
local_action: known_hosts |
|
|
args: |
|
|
args: |
|
|
path: 'ssh_known_hosts' |
|
|
|
|
|
|
|
|
path: "{{ playbook_dir }}/ssh_known_hosts" |
|
|
name: '{{ inventory_hostname }}' |
|
|
name: '{{ inventory_hostname }}' |
|
|
key: "{{ inventory_hostname }},{{ ansible_host }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}" |
|
|
key: "{{ inventory_hostname }},{{ ansible_host }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}" |
|
|
when: |
|
|
when: |
|
|