Squash merge move_to_single_file_pkgs into main

This commit is contained in:
Matthew Stobbs
2026-04-13 14:50:45 -06:00
parent ff740426c8
commit 8dc427f027
373 changed files with 3883 additions and 9963 deletions

View File

@@ -1,7 +1,40 @@
# vim: set filetype=yaml.ansible :
#
## Package: flatpak
## Description: Universal application runtime for linux
## Version: latest
## Methods:
## - system
---
- name: Append flatpak to pkg_sys
when:
- ansible_system == 'Linux'
- name: Set flatpak default facts # {{{
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['flatpak'] }}"
flatpak:
methods:
- system
pkgname: flatpak
# }}}
- name: Configure flatpak
when:
- "'flatpak' not in __configured"
block:
- name: Set flatpak install method
when:
- flatpak_imethod is undefined
ansible.builtin.set_fact:
flatpak_imethod: "{{ imethod if imethod in flatpak.methods else flatpak.methods[0] }}"
- name: Append flatpak to pkg_sys
when:
- flatpak_imethod == 'system'
block:
- name: Configure flatpak system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [flatpak.pkgname] }}"
- name: Finalise flatpak system install
ansible.builtin.set_fact:
flatpak_install: "{{ flatpak_imethod }}={{ flatpak.pkgname }}"
- name: Finalise flatpak configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'flatpak': flatpak_install } ) }}"