This commit is contained in:
2021-11-10 15:51:56 +01:00
parent c48fd888f4
commit 17e4c4a77b
8 changed files with 204 additions and 172 deletions

View File

@@ -10,7 +10,7 @@
register: samba_remove_system_users_present
changed_when: "samba_remove_system_users_present.rc == 0"
failed_when: "samba_remove_system_users_present.rc > 1"
with_items:
with_items:
- "{{ remove_system_users }}"
loop_control:
label: '{{ item.name }}'
@@ -21,11 +21,11 @@
- name: (samba-remove-user.yml) Remove (old) system users from samba
shell: >
smbpasswd -s -x {{ item.item.name }}
with_items:
with_items:
- "{{ samba_remove_system_users_present.results }}"
loop_control:
label: '{{ item.item.name }}'
when:
when:
- item.changed
tags:
- samba-user