homeserver/roles/mgrote_fileserver_smb/tasks/users.yml
Michael Grote bc6f8fdc9e
All checks were successful
ansible-lint / gitleaks (push) Successful in 5s
ansible-lint / Ansible Lint (push) Successful in 1m0s
add no_log as global variable (#233)
Reviewed-on: #233
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-11-10 15:56:59 +01:00

18 lines
459 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: "{{ no_debug | default('true') }}"
notify: set samba passwords