|
@@ -1,17 +1,17 @@ |
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
- include: regenerate.yml |
|
|
|
|
|
|
|
|
- import_tasks: regenerate.yml |
|
|
when: ssh_host_key_state == 'regenerated' |
|
|
when: ssh_host_key_state == 'regenerated' |
|
|
|
|
|
|
|
|
- include: scan.yml |
|
|
|
|
|
|
|
|
- import_tasks: scan.yml |
|
|
when: ssh_host_key_state == 'scanned' |
|
|
when: ssh_host_key_state == 'scanned' |
|
|
|
|
|
|
|
|
- include: setup.yml |
|
|
|
|
|
|
|
|
- import_tasks: setup.yml |
|
|
when: |
|
|
when: |
|
|
- ssh_host_key_state == 'configured' |
|
|
- ssh_host_key_state == 'configured' |
|
|
- ansible_ssh_host_key_ed25519_public is defined |
|
|
- ansible_ssh_host_key_ed25519_public is defined |
|
|
|
|
|
|
|
|
- include: fetch.yml |
|
|
|
|
|
|
|
|
- import_tasks: fetch.yml |
|
|
when: |
|
|
when: |
|
|
- ssh_host_key_state == 'configured' or |
|
|
- ssh_host_key_state == 'configured' or |
|
|
ssh_host_key_state == 'fetched' or |
|
|
ssh_host_key_state == 'fetched' or |
|
@@ -20,16 +20,17 @@ |
|
|
and not ansible_ssh_host_key_ed25519_public is defined |
|
|
and not ansible_ssh_host_key_ed25519_public is defined |
|
|
or not ssh_host_key_state == 'configured' |
|
|
or not ssh_host_key_state == 'configured' |
|
|
|
|
|
|
|
|
- include: save.yml |
|
|
|
|
|
|
|
|
- import_tasks: save.yml |
|
|
when: |
|
|
when: |
|
|
ssh_host_key_state == 'configured' or |
|
|
ssh_host_key_state == 'configured' or |
|
|
ssh_host_key_state == 'scanned' or |
|
|
ssh_host_key_state == 'scanned' or |
|
|
ssh_host_key_state == 'regenerated' or |
|
|
ssh_host_key_state == 'regenerated' or |
|
|
ssh_host_key_state == 'fetched' |
|
|
ssh_host_key_state == 'fetched' |
|
|
|
|
|
|
|
|
- include: file.yml |
|
|
|
|
|
|
|
|
- import_tasks: local.yml |
|
|
when: |
|
|
when: |
|
|
ssh_host_key_state == 'configured' or |
|
|
|
|
|
ssh_host_key_state == 'scanned' or |
|
|
|
|
|
ssh_host_key_state == 'regenerated' or |
|
|
|
|
|
ssh_host_key_state == 'saved' |
|
|
|
|
|
|
|
|
- ssh_host_key_state == 'configured' or |
|
|
|
|
|
ssh_host_key_state == 'scanned' or |
|
|
|
|
|
ssh_host_key_state == 'regenerated' or |
|
|
|
|
|
ssh_host_key_state == 'saved' |
|
|
|
|
|
- ssh_update_local_known_hosts_file |