ansible/roles/users/tasks/main.yml

16 lines
260 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
- 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