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