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

Distribute tunnel keys without delegation

parent 8a47d36d
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,7 @@
- name: "Distribute public key of tunnel user"
authorized_key:
user='{{ tunnel_user_name }}'
key="{{ pubkey.stdout }} {{ inventory_hostname }}"
path='/home/{{ tunnel_user_name }}/.ssh/fresh_auth_keys_tunnel_{{ inventory_hostname }}'
delegate_to: '{{ item }}'
key="{{ hostvars[item].pubkey.stdout }} {{ item }}"
path='/home/{{ tunnel_user_name }}/.ssh/fresh_auth_keys_tunnel_{{ item }}'
with_items: '{{ groups.all }}'
when: item != "localhost" and inventory_hostname != "localhost"
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