32 lines
815 B
YAML
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 }}"
|