From ca89c810cdb5ae3a8dfed58f8a673978fc3bd6d9 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 15 Jul 2024 19:42:30 +0200 Subject: [PATCH] fix(flatpak): install flatpak if not present Signed-off-by: Matej Focko --- roles/flatpak/tasks/install.yml | 6 ++++++ roles/flatpak/tasks/main.yml | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 roles/flatpak/tasks/install.yml diff --git a/roles/flatpak/tasks/install.yml b/roles/flatpak/tasks/install.yml new file mode 100644 index 0000000..37e8c1f --- /dev/null +++ b/roles/flatpak/tasks/install.yml @@ -0,0 +1,6 @@ +--- +- name: Install the required packages + ansible.builtin.package: + name: flatpak + state: present + become: true diff --git a/roles/flatpak/tasks/main.yml b/roles/flatpak/tasks/main.yml index f0f8d5a..f94dcfe 100644 --- a/roles/flatpak/tasks/main.yml +++ b/roles/flatpak/tasks/main.yml @@ -1,4 +1,8 @@ --- +- name: Packages + ansible.builtin.include_tasks: install.yml + tags: install + - name: Enable Flathub community.general.flatpak_remote: name: flathub