From e1fb7bf6dbc9249c62b0e1255bf83b3c0df35378 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 5 Aug 2021 16:09:45 +0300 Subject: initial commit --- roles/flatpak/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/flatpak/tasks/main.yml (limited to 'roles/flatpak') diff --git a/roles/flatpak/tasks/main.yml b/roles/flatpak/tasks/main.yml new file mode 100644 index 0000000..80a84ff --- /dev/null +++ b/roles/flatpak/tasks/main.yml @@ -0,0 +1,10 @@ +- name: Check if flatpak is installed + command: flatpak --version + register: flatpak_version + changed_when: no + ignore_errors: yes + +- when: flatpak_version.rc == 0 + name: Upgrade packages + command: flatpak update --noninteractive + become: yes -- cgit v1.2.3