This commit is contained in:
2021-11-10 15:53:08 +01:00
parent 2ac714acc5
commit a9579060a4
9 changed files with 111 additions and 171 deletions

View File

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