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:
9
tasks/main.yml
Normal file
9
tasks/main.yml
Normal 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"
|
||||
Reference in New Issue
Block a user