|
|
@@ -1,24 +1,20 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- include: regenerate.yml |
|
|
|
when: |
|
|
|
ssh_host_key_state is defined |
|
|
|
and ssh_host_key_state == 'regenerated' |
|
|
|
when: ssh_host_key_state == 'regenerated' |
|
|
|
|
|
|
|
- include: scan.yml |
|
|
|
when: |
|
|
|
ssh_host_key_state is defined |
|
|
|
and ssh_host_key_state == 'scanned' |
|
|
|
when: ssh_host_key_state == 'scanned' |
|
|
|
|
|
|
|
- include: setup.yml |
|
|
|
when: |
|
|
|
ssh_host_key_state is defined |
|
|
|
and ssh_host_key_state == 'setup' |
|
|
|
ssh_host_key_state == 'configured' |
|
|
|
|
|
|
|
- include: fetch.yml |
|
|
|
when: |
|
|
|
not ssh_host_key_state is defined |
|
|
|
or ssh_host_key_state == 'fetched' |
|
|
|
or ssh_host_key_state == 'regenerated' |
|
|
|
ssh_host_key_state == 'fetched' |
|
|
|
|
|
|
|
- include: save.yml |
|
|
|
when: |
|
|
|
ssh_host_key_state == 'configured' or |
|
|
|
ssh_host_key_state == 'scanned' |