Working on source packages

Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
Matthew Stobbs
2026-02-02 02:35:16 -07:00
parent fa78c0aa0c
commit c613a29ce4
14 changed files with 470 additions and 396 deletions

View File

@@ -1,5 +1,33 @@
# vim: set filetype=yaml.ansible :
---
- name: Append ansible to pkg_sys
- name: Set maintainer
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['ansible'] }}"
ansible_maintainers:
- Matthew Stobbs
- name: Configure ansible
when:
- __ansible_configured is undefined or
not __ansible_configured
block:
- name: Set ansible install method
when:
- ansible_install_method is undefined
ansible.bulitin.set_fact:
ansible_install_method: "{% if install_method in ansible_install_methods %}{{ install_method }}{% else %}{{ ansible_install_methods[0] }}{% endif %}"
ansible_pkgname:
RedHat: ansible
Debian: ansible
Alpine: ansible
Archlinux: ansible
- name: Complete ansible configuration
ansible.builtin.set_fact:
__ansible_configured: true
- name: Append ansible to system package manager install list
when:
- ansible_install_method == 'system'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [ansible_pkgname[ansible_os_family]] }}"
- name: Append ansible to pipx install list