Skip to content

Commit cdd99fb

Browse files
authored
fail when softwareupdate exitcode not 0
1 parent 73abfec commit cdd99fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
notify:
5757
- Cleanup
5858
register: su_result
59-
failed_when: '"Error installing updates." in su_result.stdout'
59+
failed_when: 'su_result.rc != 0 or "Error installing updates." in su_result.stdout'

0 commit comments

Comments
 (0)