feat: initial cross-distro package management role

Supports apt, dnf, yum, pacman, apk and zypper. Variables cover install,
remove, upgrade, cache refresh and autoremove.
This commit is contained in:
2026-05-24 16:40:42 +02:00
commit c94df9fefa
12 changed files with 273 additions and 0 deletions

9
tasks/main.yml Normal file
View File

@@ -0,0 +1,9 @@
---
- name: Assert supported package manager
ansible.builtin.assert:
that:
- ansible_pkg_mgr in ['apt', 'dnf', 'yum', 'pacman', 'apk', 'zypper']
fail_msg: "Package manager '{{ ansible_pkg_mgr }}' is not supported by this role"
- name: Include package manager tasks
ansible.builtin.include_tasks: "{{ ansible_pkg_mgr }}.yml"