Files
ansible_role_package/tasks/pkgs/carapace.yml
Matthew Stobbs ceabce67e4 removed bool check
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
2025-05-12 14:24:27 -06:00

32 lines
815 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Load carapace config
ansible.builtin.include_tasks:
file: config/carapace.yml
- 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: Append carapace to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"