Do not run the flatpak repair on machines with batteries.

This commit is contained in:
Hyperling 2023-02-20 07:20:04 -06:00
parent 9736ee4bce
commit 6499a802b2

View File

@ -168,9 +168,9 @@
- name: General | Facts | Package | Update Commands | flatpak | exists - name: General | Facts | Package | Update Commands | flatpak | exists
set_fact: set_fact:
update_flatpak: | update_flatpak: |
echo "*** Flatpak ***" && echo "*** Flatpak ***"
[[ {{ battery }} != 'True' ]] && sudo flatpak repair
sudo flatpak uninstall --unused {{ update_accept_var }} && sudo flatpak uninstall --unused {{ update_accept_var }} &&
sudo flatpak repair &&
sudo flatpak update {{ update_accept_var }} && sudo flatpak update {{ update_accept_var }} &&
when: flatpak_exec is defined and flatpak_exec.failed is defined and not flatpak_exec.failed when: flatpak_exec is defined and flatpak_exec.failed is defined and not flatpak_exec.failed