diff --git a/tasks/nova_compute_key_distribute.yml b/tasks/nova_compute_key_distribute.yml index 7dfc8d43..1d390169 100644 --- a/tasks/nova_compute_key_distribute.yml +++ b/tasks/nova_compute_key_distribute.yml @@ -18,6 +18,7 @@ user: "{{ nova_system_user_name }}" key: "{{ hostvars[item]['nova_pubkey'] | b64decode }}" with_items: groups['nova_compute'] + when: hostvars[item]['nova_pubkey'] is defined tags: - nova-key - nova-key-distribute