blob: 23d9eb73a71462c7e9d88c48090025607774b2d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|