Feature users config ssh #9 #10
8
roles/users/tasks/main.yml
Normal file
8
roles/users/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Ensure groups exist
|
||||
group:
|
||||
name: "{{ item.name }}"
|
||||
gid: "{{ item.gid | default(ommit) }}"
|
||||
state: present
|
||||
with_items: groups
|
||||
|
12
roles/users/vars/main.yml
Normal file
12
roles/users/vars/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
groups:
|
||||
-
|
||||
|
||||
users:
|
||||
- remember
|
||||
- direct
|
||||
- degree
|
||||
- sand
|
||||
- grief
|
||||
- jam
|
||||
- king
|
7
site.yaml
Normal file
7
site.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Manage user configuration
|
||||
hosts: all
|
||||
remote_user: root
|
||||
roles:
|
||||
- users
|
||||
|
Loading…
Reference in a new issue