Michael Grote
7a24089031
Reviewed-on: #584 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
18 lines
429 B
YAML
18 lines
429 B
YAML
---
|
|
- name: ensure group exist
|
|
become: true
|
|
ansible.builtin.group:
|
|
name: smb_users
|
|
state: present
|
|
|
|
- name: configure linux-users
|
|
become: true
|
|
ansible.builtin.user:
|
|
name: "{{ item.name }}"
|
|
group: smb_users
|
|
state: "{{ item.state | default('present') }}"
|
|
remove: "{{ item.remove_dir | default('false') }}"
|
|
create_home: false
|
|
loop: "{{ smb_users }}"
|
|
no_log: true
|
|
notify: set samba passwords
|