adjust pkg list generation

- add a custom pkg definition if it exists
- if it doesn't exist, assume it's a package manager packge name
This commit is contained in:
Matthew Stobbs
2025-01-21 16:59:02 -07:00
parent c62d4e1977
commit 0ece836f39
3 changed files with 16 additions and 1 deletions

11
tasks/addpkg.yml Normal file
View File

@@ -0,0 +1,11 @@
---
- name: add custom pkg if available
ansible.builtin.include_tasks:
file: "pkgs/{{ ansible_os_family }}/{{ pkg }}.yml"
register: cadd_pkg
ignore_errors: true
tags:
- packages
- debug:
var: cadd_pkg