Skip to content

Commit ced633d

Browse files
authored
Merge pull request #43 from Trane9991/patch-1
Fail task when software updates were not installed
2 parents 510b73b + 5d23247 commit ced633d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@
5555
when: pkg_info.rc != 0 or compiler.rc != 0 or not clt.stat.exists
5656
notify:
5757
- Cleanup
58+
register: su_result
59+
failed_when: >-
60+
su_result.rc != 0 or
61+
'Error installing updates.' in su_result.stdout

0 commit comments

Comments
 (0)