packages are more generic

- if config is needed, it has a file in vars/
- all imported vars for pkgs are namespaced with _<pkgname>
This commit is contained in:
Matthew Stobbs
2025-01-23 00:29:58 -07:00
parent 6fa5a46701
commit 0f2d22f3c5
76 changed files with 277 additions and 594 deletions

View File

@@ -3,7 +3,7 @@
file: carapace.yml
name: _carapace
- name: install carapace RPM
- name: enable carapace yum repository
ansible.builtin.yum_repository:
name: Gemfury Private Repo
baseurl: https://yum.fury.io/rsteube/
@@ -13,14 +13,15 @@
when: ansible_os_familiy == 'RedHat'
become: true
- name: enable carapace repository
- name: enable carapace apt repository
become: true
ansible.builtin.apt_repository:
repo: "deb [trusted=yes] https://apt.fury.io/rsteube/ /"
state: present
update_cache: false
filename: carapace
when: ansible_os_family == 'Debian'
- name: add carapace to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ 'carapace-bin' ] }}"
syspkgs: "{{ syspkgs + _carapace[ansible_system].pkgs }}"