From bbced59f27d07563734cd0b3cb3da5e4e77634ae Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 13 Jan 2019 20:07:50 +0100 Subject: users: add more flexible user management Now user data is in roles/users/defaults/main.yml and each server should have a hash like this users: 'foo': sudo 'bar': true 'baz': false #'qux': false This means the user foo will be created with sudo access, the user bar will be created without sudo access, while baz and qux will be removed. --- roles/users/templates/authorized_keys.j2 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 roles/users/templates/authorized_keys.j2 (limited to 'roles/users/templates') diff --git a/roles/users/templates/authorized_keys.j2 b/roles/users/templates/authorized_keys.j2 new file mode 100644 index 0000000..33a30f2 --- /dev/null +++ b/roles/users/templates/authorized_keys.j2 @@ -0,0 +1,3 @@ +{% for key in userdata[item].authorized_keys %} +{{ key }} +{% endfor %} -- cgit v1.2.1