From 3640fc07d0bde093903f828eb472a0bf86adf138 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Tue, 10 May 2022 22:04:57 +0200 Subject: [PATCH] Added ansible play for flatpak installation and configuration --- ansible/flatpak.configure.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ansible/flatpak.configure.yml diff --git a/ansible/flatpak.configure.yml b/ansible/flatpak.configure.yml new file mode 100644 index 0000000..59ffa35 --- /dev/null +++ b/ansible/flatpak.configure.yml @@ -0,0 +1,38 @@ +--- + +- name: Install and configure Flatpak + tags: + - flatpak + - linux + - package_manager + - package_managers + - package-manager + - package-managers + - pkg_mgr + hosts: all + vars: + flathub_name: flathub + flathub_url: https://flathub.org/repo/flathub.flatpakrepo + tasks: + - when: ansible_system == 'Linux' + tags: linux + block: + - name: Install flatpak + tags: + - install + - installation + become: true + ansible.builtin.package: + name: flatpak + state: present + - name: Configure Flatpak + tags: + - configure + - configuration + block: + - name: Enable the Flathub remote for the system + tags: flathub + become: true + community.general.flatpak_remote: + name: "{{ flathub_name }}" + flatpakrepo_url: "{{ flathub_url }}"