- testing container is starting to work on macos - still need to do testing for linux machines
28 lines
719 B
YAML
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 }}"
|