|
@@ -23,7 +23,7 @@ |
|
|
args: |
|
|
args: |
|
|
path: 'ssh_known_hosts' |
|
|
path: 'ssh_known_hosts' |
|
|
name: '{{ inventory_hostname }}' |
|
|
name: '{{ inventory_hostname }}' |
|
|
key: "{{ inventory_hostname }} {{ _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: |
|
|
not ssh_host_key_state is defined or |
|
|
not ssh_host_key_state is defined or |
|
|
ssh_host_key_state == 'configured' or |
|
|
ssh_host_key_state == 'configured' or |
|
|