2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
- 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 }}"
|
2024-11-10 15:50:30 +01:00
|
|
|
no_log: "{{ no_debug | default('true') }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
notify: set samba passwords
|