From 7e4f9752283cab83112c22c6a8ca93558aeb3439 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 16 Aug 2021 18:04:58 -0500 Subject: [PATCH] Better `update` consistency between Parrot and non-Parrot. (#9) * Add autoremove to Parrot and Parrot package "fixes" to non-Parrot apt distros. * Add -y var to Parrot autoremove. --- facts/general/package.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/facts/general/package.yml b/facts/general/package.yml index 76abb6f..b1e0f8c 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -41,7 +41,9 @@ echo "*** Apt ***" && sudo apt update && sudo apt autoremove {{ update_accept_var }} && - sudo apt dist-upgrade {{ update_accept_var }} && + sudo dpkg --configure -a && + sudo apt --fix-broken --fix-missing install && + sudo apt dist-upgrade --allow-downgrades --fix-broken --fix-missing {{ update_accept_var }} && when: ansible_pkg_mgr == "apt" - name: General | Facts | Package | Update Commands | pacman @@ -62,8 +64,10 @@ - name: General | Facts | Package | Update Commands | parrot-upgrade set_fact: update_package_manager: | - parrot_mirrors_suck=true echo "*** Parrot ***" + sudo apt update && + sudo apt autoremove {{ update_accept_var }} && + parrot_mirrors_suck=true && while [[ $parrot_mirrors_suck ]]; do unset parrot_mirrors_suck sudo parrot-upgrade