add more testing containers
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user