Skip to content
Snippets Groups Projects
Commit 6dd60cb3 authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure this is working even if run on limited inventory

parent 5e67b80a
No related branches found
No related tags found
No related merge requests found
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
key="{{ hostvars[item].pubkey.stdout }} {{ item }}" key="{{ hostvars[item].pubkey.stdout }} {{ item }}"
path='/home/{{ tunnel_user_name }}/.ssh/fresh_auth_keys_tunnel_{{ item }}' path='/home/{{ tunnel_user_name }}/.ssh/fresh_auth_keys_tunnel_{{ item }}'
with_items: '{{ groups.all }}' with_items: '{{ groups.all }}'
when: item != "localhost" and inventory_hostname != "localhost" when: item != "localhost" and inventory_hostname != "localhost" and hostvars[item].pubkey is defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment