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