Add checks for defined return codes in samba user management tasks
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
executable: /bin/bash
|
||||
changed_when: true
|
||||
loop: "{{ common_samba_nis_user_present.results }}"
|
||||
when: item.rc == 1
|
||||
when:
|
||||
- item.rc is defined
|
||||
- item.rc == 1
|
||||
loop_control:
|
||||
label: '{{ item.item.name }}'
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user