Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/39services/ansible_role_flatpak
Ansible role to install Flatpak, set up Flathub and optionally install packages with Flatpak
https://github.com/39services/ansible_role_flatpak
Last synced: 8 days ago
JSON representation
Ansible role to install Flatpak, set up Flathub and optionally install packages with Flatpak
- Host: GitHub
- URL: https://github.com/39services/ansible_role_flatpak
- Owner: 39services
- License: mit
- Created: 2023-05-10T14:45:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-07T11:28:38.000Z (7 months ago)
- Last Synced: 2024-12-06T12:13:05.668Z (17 days ago)
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role Flatpak
=========[![Molecule Test](https://github.com/diademiemi/ansible_role_flatpak/actions/workflows/molecule.yml/badge.svg)](https://github.com/diademiemi/ansible_role_flatpak/actions/workflows/molecule.yml)
This is an Ansible role to install and configure Flatpak and optionally add Flathub and install/uninstall packages.
Requirements
------------
These platforms are supported:
- Ubuntu 20.04
- Ubuntu 22.04
- Debian 11
- Debian 12
- EL 8 (Tested on Rocky Linux 8)
- EL 9 (Tested on Rocky Linux 9)
- Fedora 40
- openSUSE Leap 15.5Role Variables
--------------Variable | Default | Description
--- | --- | ---
`flatpak_enable_flathub_repo` | `true` | Whether to add the Flathub repository
`flatpak_flathub_repo_url` | `https://flathub.org/repo/flathub.flatpakrepo` | The URL of the Flathub repository
`flatpak_install_gnome` | `false` | Whether to install the GNOME Software plugin
`flatpak_install_kde` | `false` | Whether to install the KDE Discover plugin
`flatpak_packages` | `[]` | List of flatpak packages to install
`flatpak_user` | `{{ ansible_user_id }}` | The user to install flatpak packages for
`flatpak_user_packages` | `[]` | List of flatpak packages to install for the the user
`flatpak_uninstall_packages` | `[]` | List of flatpak packages to uninstall
`flatpak_user_uninstall_packages` | `[]` | List of flatpak packages to uninstall for the the userDependencies
------------None
Example Playbook
----------------```yaml
- role: "diademiemi.flatpak"
tags: ['diademiemi', 'flatpak', 'setup'] ``````
License
-------MIT
Author Information
------------------- diademiemi (@diademiemi)
Role Testing
------------This repository comes with Molecule that run in Podman on the supported platforms.
Install Molecule by running```bash
pip3 install -r requirements.txt
```Run the tests with
```bash
molecule test
```These tests are automatically ran by GitHub Actions on push. If the tests are successful, the role is automatically published to Ansible Galaxy.