Files
ansible_role_package/tasks/pkgs/carapace.yml
Matthew Stobbs 0f2d22f3c5 packages are more generic
- if config is needed, it has a file in vars/
- all imported vars for pkgs are namespaced with _<pkgname>
2025-01-23 00:29:58 -07:00

28 lines
714 B
YAML

---
- ansible.builtin.include_vars:
file: carapace.yml
name: _carapace
- name: enable carapace yum repository
ansible.builtin.yum_repository:
name: Gemfury Private Repo
baseurl: https://yum.fury.io/rsteube/
enabled: true
gpgcheck: false
state: present
when: ansible_os_familiy == 'RedHat'
become: true
- 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[ansible_system].pkgs }}"