--- - 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"