Browse Source

better state handling

master
parent
commit
1d2e001a49
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      tasks/main.yml

+ 5
- 2
tasks/main.yml View File

@@ -12,9 +12,12 @@

- include: fetch.yml
when:
ssh_host_key_state == 'fetched'
ssh_host_key_state == 'fetched' or
ssh_host_key_state == 'regenerated'

- include: save.yml
when:
ssh_host_key_state == 'configured' or
ssh_host_key_state == 'scanned'
ssh_host_key_state == 'scanned' or
ssh_host_key_state == 'regenerated' or
ssh_host_key_state == 'saved'

Loading…
Cancel
Save