Add checks for defined return codes in samba user management tasks

This commit is contained in:
2026-07-31 02:56:14 +02:00
parent 46327da2ac
commit 0a19c928f5
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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: