From 6499a802b21db6acd44a6184f1877a9fafcc866b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 20 Feb 2023 07:20:04 -0600 Subject: [PATCH] Do not run the flatpak repair on machines with batteries. --- facts/general/package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facts/general/package.yml b/facts/general/package.yml index 09a0c49..c7a67c5 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -168,9 +168,9 @@ - name: General | Facts | Package | Update Commands | flatpak | exists set_fact: update_flatpak: | - echo "*** Flatpak ***" && + echo "*** Flatpak ***" + [[ {{ battery }} != 'True' ]] && sudo flatpak repair sudo flatpak uninstall --unused {{ update_accept_var }} && - sudo flatpak repair && sudo flatpak update {{ update_accept_var }} && when: flatpak_exec is defined and flatpak_exec.failed is defined and not flatpak_exec.failed