Files
ansible_role_package/tasks/pkgs/carapace.yml
Matthew Stobbs 2472f527d1 fix remaining packages
- testing container is starting to work on macos
- still need to do testing for linux machines
2025-02-23 01:32:45 -07:00

28 lines
719 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Enable carapace yum repository
when:
- ansible_os_family == 'RedHat'
become: true
ansible.builtin.yum_repository:
name: "{{ carapace.repo.name }}"
description: "{{ carapace.repo.description }}"
baseurl: "{{ carapace.repo.baseurl }}"
enabled: true
gpgcheck: false
state: present
- name: Enable carapace apt repository
when:
- ansible_os_family == 'Debian'
become: true
ansible.builtin.apt_repository:
repo: "{{ carapace.repo.repo }}"
filename: "{{ carapace.repo.name }}"
state: present
update_cache: false
- name: Add carapace to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"