Added logic to only consider upgrade failed when it actually failed

This commit is contained in:
2026-05-18 08:35:38 -04:00
parent a6947c3c55
commit 93924970ba
+13 -1
View File
@@ -1,5 +1,17 @@
- name: Full repository upgrade ---
- name: Perform full system upgrade
become: true become: true
community.general.pacman: community.general.pacman:
update_cache: true update_cache: true
upgrade: 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"