|
|
@@ -0,0 +1,27 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- include: scan.yml |
|
|
|
when: |
|
|
|
ssh_host_key_state is defined and |
|
|
|
ssh_host_key_state == 'scanned' |
|
|
|
|
|
|
|
#- include: setup.yml |
|
|
|
|
|
|
|
- include: fetch.yml |
|
|
|
when: |
|
|
|
root_target_directory is defined and ( |
|
|
|
not ssh_host_key_state is defined or |
|
|
|
ssh_host_key_state == 'fetched' ) |
|
|
|
|
|
|
|
- include: save.yml |
|
|
|
|
|
|
|
- name: write ssh_known_hosts file |
|
|
|
local_action: known_hosts |
|
|
|
args: |
|
|
|
path: 'ssh_known_hosts' |
|
|
|
name: '{{ inventory_hostname }}' |
|
|
|
key: "{{ inventory_hostname }} {{ _ssh_key_type[ssh_host_key_type] }} {{ _ssh_host_key[ssh_host_key_type] }}" |
|
|
|
when: |
|
|
|
not ssh_host_key_state is defined or |
|
|
|
ssh_host_key_state == 'configured' or |
|
|
|
ssh_host_key_state == 'scanned' |