diff --git a/tasks/main.yml b/tasks/main.yml index 31ba727..c7b4e83 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,10 @@ ssh_host_key_state is defined and ssh_host_key_state == 'scanned' -#- include: setup.yml +- include: setup.yml + when: + ssh_host_key_state is defined and + ssh_host_key_state == 'setup' - include: fetch.yml when: diff --git a/vars/main.yml b/vars/main.yml index 597f3f4..33bf1a1 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ _ssh_key_type: ed25519: ssh-ed25519 _ssh_host_key: - ed25519: "{{ ssh_host_key_ed25519_public | default(undefined) }}" \ No newline at end of file + ed25519: "{{ ssh_host_key_ed25519_public | default(undefined) }}"