From bdc31cb021b36e5d3023d8892523a3ec3a1647dd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 7 Mar 2021 23:39:39 +0100 Subject: add host ch-mc --- roles/ws/users/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/ws/users/tasks/main.yml (limited to 'roles/ws/users/tasks/main.yml') diff --git a/roles/ws/users/tasks/main.yml b/roles/ws/users/tasks/main.yml new file mode 100644 index 00000000..23d9eb73 --- /dev/null +++ b/roles/ws/users/tasks/main.yml @@ -0,0 +1,15 @@ +--- +- name: add workstation users + loop: "{{ ws_users }}" + user: + name: "{{ item }}" + state: present + password: "{{ hostvars[inventory_hostname]['vault_user_password_'+item] }}" ## TODO: find nicer way to do this + shell: "{{ users[item].shell | default(ws_users_default_shell) }}" + +- name: install ssh keys for workstation users + loop: "{{ ws_users }}" + authorized_key: + user: "{{ item }}" + key: "{{ users[item].ssh | join('\n') }}" + exclusive: yes -- cgit v1.2.3