diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-01 06:41:24 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-01 06:41:24 +0200 |
commit | 508602b0426bdf1412bd6fb3350fece0cae2e7c8 (patch) | |
tree | 10a85d780359d65e67ed3ab45004b808f10cb63c /roles/admin-user/tasks/main.yml | |
parent | major refactoring of users database (diff) |
port admin-users role to openbsd and move to core
Diffstat (limited to 'roles/admin-user/tasks/main.yml')
-rw-r--r-- | roles/admin-user/tasks/main.yml | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/roles/admin-user/tasks/main.yml b/roles/admin-user/tasks/main.yml deleted file mode 100644 index 53eea376..00000000 --- a/roles/admin-user/tasks/main.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -- name: install sudo - apt: - name: sudo - state: present - -- name: add admin users - loop: "{{ admin_user_group | default([]) | union(admin_user_host | default([])) }}" - loop_control: - label: "{{ item.name }}" - user: - name: "{{ item.name }}" - state: present - password: "{{ item.password }}" - groups: - - sudo - - adm - append: yes - shell: "{{ item.shell | default(omit) }}" - -- name: install ssh keys for admin users - loop: "{{ admin_user_group | default([]) | union(admin_user_host | default([])) }}" - loop_control: - label: "{{ item.name }}" - authorized_key: - user: "{{ item.name }}" - key: "{{ item.ssh_keys | join('\n') }}" - exclusive: yes |