more fixs being done

This commit is contained in:
Matthew Stobbs
2025-02-21 09:54:07 -07:00
parent 481385af57
commit 4b995a3c07
16 changed files with 162 additions and 95 deletions

View File

@@ -1,22 +1,24 @@
# vim: set filetype=yaml.ansible :
---
- name: enable terra repo for fedora
when: ansible_distribution == 'Fedora'
- name: Enable terra repo for fedora
when:
- ansible_distribution == 'Fedora'
block:
- name: enable terra repo for fedora >=41
- name: Enable terra repo for fedora >=41
become: true
when: ansible_distribution_major_version|int >= 41
ansible.builtin.command:
creates: /etc/yum.repos.d/terra.repo
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.terrarepo.repo }}"
- name: enable terra repo for fedora < 41
- name: Enable terra repo for fedora < 41
become: true
when: ansible_distribution_major_version|int < 41
ansible.builtin.command:
creates: /etc/yum.repos.d/terra.repo
cmd: "dnf config-manager --add-repo {{ pkgconfig.terrarepo.repo }}"
- ansible.builtin.dnf:
- name: Install terra release package
ansible.builtin.dnf:
name: terra-release
state: present