removed bool check

Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
This commit is contained in:
Matthew Stobbs
2025-05-12 14:24:27 -06:00
parent d0fbd457bb
commit ceabce67e4
84 changed files with 588 additions and 1107 deletions

View File

@@ -1,39 +1,31 @@
# vim: set filetype=yaml.ansible :
---
- name: Add carapace
- name: Load carapace config
ansible.builtin.include_tasks:
file: config/carapace.yml
- name: Enable carapace yum repository
when:
- carapace_configured is undefined
block:
- name: Load carapace config
ansible.builtin.include_tasks:
file: config/carapace.yml
- 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 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: 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 }}"
- name: Set carapace_configured
ansible.builtin.set_fact:
carapace_configured: true
- name: Append carapace to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"