add and fix handlers

- use handlers for pre-installation dependencies like repos
This commit is contained in:
Matthew Stobbs
2025-02-21 09:05:23 -07:00
parent 41b1acc067
commit 481385af57
3 changed files with 19 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
- name: flathub
url: https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak_method: "{% if use_local %}user{% else %}system{% endif %}"
pkg_appimage: [] # app_images to install
pkg_appimage: [] # appimages to install
pkg_flatpak: [] # flatpak packages to install
pkg_snap: [] # snpacraft.io packages
sys_pkg_become: true # Linux package managers require sudo access

View File

@@ -30,6 +30,9 @@
ansible.builtin.include_tasks:
file: addpkg.yml
- name: Flush handlers to ensure dependencies are installed
ansible.builtin.meta: flush_handlers
- name: Install sys_pkgs list using system package manager
become: "{{ sys_pkg_become }}"
ansible.builtin.package: