Update vars names
parent
22d968e1a6
commit
4622aa6b51
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
managed_users: []
|
||||
|
||||
managed_groups: []
|
|
@ -17,7 +17,7 @@
|
|||
group:
|
||||
name: "{{ item.name }}"
|
||||
state: present
|
||||
with_items: "{{ os_groups | default([]) }}"
|
||||
with_items: "{{ managed_groups }}"
|
||||
|
||||
- name: Users | Create users
|
||||
user:
|
||||
|
@ -30,14 +30,14 @@
|
|||
groups: "{{ item.groups | default(omit) }}"
|
||||
append: no
|
||||
system: "{{ item.system | default(omit) }}"
|
||||
with_items: "{{ os_users }}"
|
||||
with_items: "{{ managed_users }}"
|
||||
|
||||
- name: Users | Deploy ssh public keys
|
||||
authorized_key:
|
||||
exclusive: yes
|
||||
user: "{{ item.name }}"
|
||||
key: "{{ lookup(item.lookup, item.keys_source) }}"
|
||||
with_items: "{{ os_users }}"
|
||||
with_items: "{{ managed_users }}"
|
||||
when:
|
||||
- item.lookup is defined
|
||||
- item.keys_source is defined
|
||||
|
|
Loading…
Reference in New Issue