add more testing containers

This commit is contained in:
Matthew Stobbs
2025-02-23 03:11:12 -07:00
parent 57b3b93a18
commit 6397899d88
10 changed files with 82 additions and 29 deletions

View File

@@ -8,31 +8,12 @@
when:
- ansible_os_family == 'RedHat'
block:
- name: Enable hashicorp repo for fedora >=41
- name: Enable hashicorp repo
become: true
when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int >= 41
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager addrepo --from-repofile={{ hashicorp.repo }}"
- name: Enable hashicorp repo for fedora <41
become: true
when:
- ansible_distribution == 'Fedora'
- ansible_distribution_major_version|int < 41
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager --add-repo {{ hashicorp.repo }}"
- name: Enable hashicorp repo for RHEL like distribution
become: true
when:
- ansible_distribution != 'Fedora'
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager --add-repo {{ hashicorp.repo }}"
ansible.builtin.get_url:
url: "{{ hashicorp.repo }}"
dest: /etc/yum.repos.d/hashicorp.repo
mode: '0644'
- name: Debian based repository
when: