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

Easy key distribution with a tag

parent 79428832
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@
- '{{ admins }}'
- '{{ jailusers }}'
when: distribute_keys
tags: 'Keys'
#TODO: Make sure that the user already exists
- name: "Install Public Key For Extra Users"
......@@ -57,3 +58,4 @@
user='{{ item.username }}'
key="{{ lookup('file', inventory_dir + '/files/keys/' + item.keyname + '.d2s.pub') }}"
with_items: '{{ auth_keys }}'
tags: 'Keys'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment