diff --git a/roles/arch_update/tasks/repo_upgrade.yaml b/roles/arch_update/tasks/repo_upgrade.yaml index dc61611..fd9a8e9 100644 --- a/roles/arch_update/tasks/repo_upgrade.yaml +++ b/roles/arch_update/tasks/repo_upgrade.yaml @@ -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" +