add more testing containers
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
- name: Set OS name for RedHat family
|
||||
when:
|
||||
- ansible_os_famly == 'RedHat'
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
hashicorp:
|
||||
repo: "{{ pkgconfig.hashicorp.Linux[rpm_dist.stdout] }}"
|
||||
repo: "{{ pkgconfig.hashicorp.Linux[rpm_dist.stdout].repo }}"
|
||||
|
||||
- name: Set repo for debian
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
ansible.builtin.set_Fact:
|
||||
hashicorp:
|
||||
repo: "{{ pkgconfig.hashicorp.Linux.Debian }}"
|
||||
repo: "{{ pkgconfig.hashicorp.Linux.Debian.repo }}"
|
||||
|
||||
@@ -5,11 +5,16 @@
|
||||
ansible.builtin.set_fact:
|
||||
rhname: "{%if ansible_distribution == 'Fedora' %}fedora{% else %}epel{% endif %}"
|
||||
|
||||
- name: Set deps for distros
|
||||
ansible.builtin.set_fact:
|
||||
zfs:
|
||||
deps: "{% if ansible_distribution == 'Fedora' %}{{ pkgconfig.zfs.build_deps.Fedora }}{% else %}{{ pkgconfig.zfs.build_deps[ansible_os_family] }}{% endif %}"
|
||||
|
||||
- name: Set ZFS config
|
||||
ansible.builtin.set_fact:
|
||||
zfs:
|
||||
repo_pkg: "{{ pkgconfig.zfs.repo_base }}/{{ rhname }}/zfs-release-{{ pkgconfig.zfs[rhname].release }}{{ rpm_dist.stdout }}.noarch.rpm"
|
||||
deps: "{{ pkgconfig.zfs.build_deps[ansible_os_family] }}"
|
||||
deps: "{{ zfs.deps }}"
|
||||
pkgs: "{{ pkgconfig.zfs.pkgs[ansible_os_family] }}"
|
||||
skip_gpg_check: "{{ rhname == 'fedora' }}"
|
||||
release: "{{ ansible_distribution_release }}"
|
||||
|
||||
@@ -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