actual min changes needed for rhel8 (#72477)
* actual min changes needed for rhel8 - specifiy releaserver as dnf/vars is ignored
This commit is contained in:
parent
6894ae7d1d
commit
13bc35e13c
4 changed files with 10 additions and 19 deletions
2
changelogs/fragments/test_rhel83.yml
Normal file
2
changelogs/fragments/test_rhel83.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- ansible-test Now supports RHEL 8.3
|
|
@ -29,7 +29,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=macos/10.15/1
|
- env: T=macos/10.15/1
|
||||||
- env: T=rhel/7.9/1
|
- env: T=rhel/7.9/1
|
||||||
- env: T=rhel/8.2/1
|
- env: T=rhel/8.3/1
|
||||||
- env: T=freebsd/11.1/1
|
- env: T=freebsd/11.1/1
|
||||||
- env: T=freebsd/12.2/1
|
- env: T=freebsd/12.2/1
|
||||||
- env: T=linux/alpine3/1
|
- env: T=linux/alpine3/1
|
||||||
|
@ -45,7 +45,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=macos/10.15/2
|
- env: T=macos/10.15/2
|
||||||
- env: T=rhel/7.9/2
|
- env: T=rhel/7.9/2
|
||||||
- env: T=rhel/8.2/2
|
- env: T=rhel/8.3/2
|
||||||
- env: T=freebsd/11.1/2
|
- env: T=freebsd/11.1/2
|
||||||
- env: T=freebsd/12.2/2
|
- env: T=freebsd/12.2/2
|
||||||
- env: T=linux/alpine3/2
|
- env: T=linux/alpine3/2
|
||||||
|
@ -61,7 +61,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=macos/10.15/3
|
- env: T=macos/10.15/3
|
||||||
- env: T=rhel/7.9/3
|
- env: T=rhel/7.9/3
|
||||||
- env: T=rhel/8.2/3
|
- env: T=rhel/8.3/3
|
||||||
- env: T=freebsd/11.1/3
|
- env: T=freebsd/11.1/3
|
||||||
- env: T=freebsd/12.2/3
|
- env: T=freebsd/12.2/3
|
||||||
- env: T=linux/alpine3/3
|
- env: T=linux/alpine3/3
|
||||||
|
@ -77,7 +77,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=macos/10.15/4
|
- env: T=macos/10.15/4
|
||||||
- env: T=rhel/7.9/4
|
- env: T=rhel/7.9/4
|
||||||
- env: T=rhel/8.2/4
|
- env: T=rhel/8.3/4
|
||||||
- env: T=freebsd/11.1/4
|
- env: T=freebsd/11.1/4
|
||||||
- env: T=freebsd/12.2/4
|
- env: T=freebsd/12.2/4
|
||||||
- env: T=linux/alpine3/4
|
- env: T=linux/alpine3/4
|
||||||
|
@ -93,7 +93,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=macos/10.15/5
|
- env: T=macos/10.15/5
|
||||||
- env: T=rhel/7.9/5
|
- env: T=rhel/7.9/5
|
||||||
- env: T=rhel/8.2/5
|
- env: T=rhel/8.3/5
|
||||||
- env: T=freebsd/11.1/5
|
- env: T=freebsd/11.1/5
|
||||||
- env: T=freebsd/12.2/5
|
- env: T=freebsd/12.2/5
|
||||||
- env: T=linux/alpine3/5
|
- env: T=linux/alpine3/5
|
||||||
|
@ -115,7 +115,7 @@ matrix:
|
||||||
|
|
||||||
- env: T=i/osx/10.11
|
- env: T=i/osx/10.11
|
||||||
- env: T=i/rhel/7.9
|
- env: T=i/rhel/7.9
|
||||||
- env: T=i/rhel/8.2
|
- env: T=i/rhel/8.3
|
||||||
- env: T=i/freebsd/11.1
|
- env: T=i/freebsd/11.1
|
||||||
- env: T=i/freebsd/12.2
|
- env: T=i/freebsd/12.2
|
||||||
- env: T=i/linux/centos6
|
- env: T=i/linux/centos6
|
||||||
|
|
|
@ -3,21 +3,9 @@
|
||||||
command: mktemp -d "{{ remote_tmp_dir }}/ansible.test.XXXXXX"
|
command: mktemp -d "{{ remote_tmp_dir }}/ansible.test.XXXXXX"
|
||||||
register: dnfroot
|
register: dnfroot
|
||||||
|
|
||||||
- name: Make a necessary directory
|
|
||||||
file:
|
|
||||||
path: "/{{ dnfroot.stdout }}/etc/dnf/vars/"
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Populate directory
|
|
||||||
copy:
|
|
||||||
# We need '8' for CentOS, but '8.x' for RHEL.
|
|
||||||
content: "{{ ansible_distribution_version|int if ansible_distribution != 'RedHat' else ansible_distribution_version }}\n"
|
|
||||||
dest: "/{{ dnfroot.stdout }}/etc/dnf/vars/releasever"
|
|
||||||
|
|
||||||
# This will drag in > 200 MB.
|
# This will drag in > 200 MB.
|
||||||
- name: attempt installroot
|
- name: attempt installroot
|
||||||
dnf: name=sos installroot="/{{ dnfroot.stdout }}/" disable_gpg_check=yes
|
dnf: name=sos installroot="/{{ dnfroot.stdout }}/" disable_gpg_check=yes releasever={{ansible_facts['distribution_major_version']}}
|
||||||
register: dnf_result
|
register: dnf_result
|
||||||
|
|
||||||
- name: check sos with rpm in installroot
|
- name: check sos with rpm in installroot
|
||||||
|
|
|
@ -8,5 +8,6 @@ rhel/7.8 python=2.7
|
||||||
rhel/7.9 python=2.7
|
rhel/7.9 python=2.7
|
||||||
rhel/8.1 python=3.6
|
rhel/8.1 python=3.6
|
||||||
rhel/8.2 python=3.6
|
rhel/8.2 python=3.6
|
||||||
|
rhel/8.3 python=3.6
|
||||||
aix/7.2 python=2.7 httptester=disabled temp-unicode=disabled pip-check=disabled
|
aix/7.2 python=2.7 httptester=disabled temp-unicode=disabled pip-check=disabled
|
||||||
power/centos/7 python=2.7
|
power/centos/7 python=2.7
|
||||||
|
|
Loading…
Reference in a new issue