Added logic to only consider upgrade failed when it actually failed
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
- name: Full repository upgrade
|
||||
become: true
|
||||
---
|
||||
- name: Perform full system upgrade
|
||||
become: true
|
||||
community.general.pacman:
|
||||
update_cache: true
|
||||
upgrade: true
|
||||
extra_args: "--noconfirm"
|
||||
register: arch_upgrade_result
|
||||
#- name: Debug full Arch upgrade output
|
||||
# ansible.builtin.debug:
|
||||
# var: arch_upgrade_result
|
||||
failed_when:
|
||||
- arch_upgrade_result.failed == true
|
||||
# We ignore the failure if it's just 'nothing to do',
|
||||
# # but otherwise, we let it fail so you can step in.
|
||||
- "'Nothing to upgrade' not in arch_upgrade_result.msg"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user