ansible/roles/users/tasks/main.yml

21 lines
329 B
YAML
Raw Normal View History

2022-09-04 17:25:14 +02:00
---
2022-08-30 18:26:16 +02:00
- name: create group 'deploy'
group:
name: deploy
gid: 700
2023-06-09 12:57:00 +02:00
- name: create group 'media'
group:
name: deploy
gid: 701
2022-08-30 18:26:16 +02:00
- name: determine available groups
getent:
database: group
2022-08-30 15:52:14 +02:00
- name: create users
include_tasks: "{{ username }}.yml"
loop: "{{ users }}"
loop_control:
loop_var: username