Added ansible play for flatpak installation and configuration

This commit is contained in:
Michele Cereda
2022-05-10 22:04:57 +02:00
parent c13e774b9b
commit 3640fc07d0

View File

@@ -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 }}"