From 89ae9a52272993502e73ee33f47ff27264a9d4bc Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 29 Sep 2017 08:54:42 +0000 Subject: [PATCH] new states --- tasks/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 71f705b..7c492c4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,12 +8,17 @@ - include: setup.yml when: - ssh_host_key_state == 'configured' + - ssh_host_key_state == 'configured' + - ansible_ssh_host_key_ed25519_public is defined - include: fetch.yml when: - ssh_host_key_state == 'fetched' or - ssh_host_key_state == 'regenerated' + - ssh_host_key_state == 'configured' or + ssh_host_key_state == 'fetched' or + ssh_host_key_state == 'regenerated' + - ssh_host_key_state == 'configured' + and not ansible_ssh_host_key_ed25519_public is defined + or not ssh_host_key_state == 'configured' - include: save.yml when: