ansible/roles/users/tasks/main.yml

21 lines
328 B
YAML
Raw Permalink 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:
2023-06-09 13:04:02 +02:00
name: media
2023-06-09 12:57:00 +02:00
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