Change: - Add Ubuntu 20.04 to CI now that venv is default instead of virtualenv in ansible-test. Test Plan: - CI Tickets: - Fixes #69203 Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
parent
c47ec375fa
commit
356aae0e23
13 changed files with 55 additions and 12 deletions
|
@ -128,6 +128,8 @@ stages:
|
||||||
test: ubuntu1604
|
test: ubuntu1604
|
||||||
- name: Ubuntu 18.04
|
- name: Ubuntu 18.04
|
||||||
test: ubuntu1804
|
test: ubuntu1804
|
||||||
|
- name: Ubuntu 20.04
|
||||||
|
test: ubuntu2004
|
||||||
groups:
|
groups:
|
||||||
- 1
|
- 1
|
||||||
- 2
|
- 2
|
||||||
|
@ -198,6 +200,8 @@ stages:
|
||||||
test: ubuntu1604
|
test: ubuntu1604
|
||||||
- name: Ubuntu 18.04
|
- name: Ubuntu 18.04
|
||||||
test: ubuntu1804
|
test: ubuntu1804
|
||||||
|
- name: Ubuntu 20.04
|
||||||
|
test: ubuntu2004
|
||||||
- stage: Incidental_Windows
|
- stage: Incidental_Windows
|
||||||
displayName: Incidental Windows
|
displayName: Incidental Windows
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
|
|
2
changelogs/fragments/ansible-test-ubuntu2004.yml
Normal file
2
changelogs/fragments/ansible-test-ubuntu2004.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- ansible-test - Added Ubuntu 20.04 LTS image to the default completion list
|
|
@ -29,9 +29,9 @@
|
||||||
when: dpkg_result is successful
|
when: dpkg_result is successful
|
||||||
tags: ['test_apt_builddep']
|
tags: ['test_apt_builddep']
|
||||||
|
|
||||||
# install build-dep for netcat
|
# install build-dep for rolldice
|
||||||
- name: install netcat build-dep with apt
|
- name: install rolldice build-dep with apt
|
||||||
apt: pkg=netcat state=build-dep
|
apt: pkg=rolldice state=build-dep
|
||||||
register: apt_result
|
register: apt_result
|
||||||
tags: ['test_apt_builddep']
|
tags: ['test_apt_builddep']
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,37 @@
|
||||||
# verify that apt is handling multi-arch systems properly
|
# verify that apt is handling multi-arch systems properly
|
||||||
|
|
||||||
|
- name: load version specific vars
|
||||||
|
include_vars: '{{ item }}'
|
||||||
|
with_first_found:
|
||||||
|
- files:
|
||||||
|
- '{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml'
|
||||||
|
- 'default.yml'
|
||||||
|
paths: '../vars'
|
||||||
|
|
||||||
- name: add architecture {{ apt_foreign_arch }}
|
- name: add architecture {{ apt_foreign_arch }}
|
||||||
command: dpkg --add-architecture {{ apt_foreign_arch }}
|
command: dpkg --add-architecture {{ apt_foreign_arch }}
|
||||||
|
|
||||||
- name: install hello:{{ apt_foreign_arch }} with apt
|
- name: install {{ multiarch_test_pkg }}:{{ apt_foreign_arch }} with apt
|
||||||
apt: pkg=hello:{{ apt_foreign_arch }} state=present update_cache=yes
|
apt: pkg={{ multiarch_test_pkg }}:{{ apt_foreign_arch }} state=present update_cache=yes
|
||||||
register: apt_result
|
register: apt_result
|
||||||
until: apt_result is success
|
until: apt_result is success
|
||||||
|
|
||||||
- name: uninstall hello:{{ apt_foreign_arch }} with apt
|
- name: check {{ multiarch_test_pkg }} version
|
||||||
apt: pkg=hello:{{ apt_foreign_arch }} state=absent purge=yes
|
shell: dpkg -s {{ multiarch_test_pkg }} | grep Version | awk '{print $2}'
|
||||||
|
register: pkg_version
|
||||||
|
|
||||||
|
- name: uninstall {{ multiarch_test_pkg }}:{{ apt_foreign_arch }} with apt
|
||||||
|
apt: pkg={{ multiarch_test_pkg }}:{{ apt_foreign_arch }} state=absent purge=yes
|
||||||
|
|
||||||
- name: install deb file
|
- name: install deb file
|
||||||
apt: deb="/var/cache/apt/archives/hello_{{ hello_version.stdout }}_{{ apt_foreign_arch }}.deb"
|
apt: deb="/var/cache/apt/archives/{{ multiarch_test_pkg }}_{{ pkg_version.stdout }}_{{ apt_foreign_arch }}.deb"
|
||||||
register: apt_multi_initial
|
register: apt_multi_initial
|
||||||
|
|
||||||
- name: install deb file again
|
- name: install deb file again
|
||||||
apt: deb="/var/cache/apt/archives/hello_{{ hello_version.stdout }}_{{ apt_foreign_arch }}.deb"
|
apt: deb="/var/cache/apt/archives/{{ multiarch_test_pkg }}_{{ pkg_version.stdout }}_{{ apt_foreign_arch }}.deb"
|
||||||
register: apt_multi_secondary
|
register: apt_multi_secondary
|
||||||
|
|
||||||
- name: verify installation of hello:{{ apt_foreign_arch }}
|
- name: verify installation of {{ multiarch_test_pkg }}:{{ apt_foreign_arch }}
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "apt_multi_initial.changed"
|
- "apt_multi_initial.changed"
|
||||||
|
|
|
@ -271,6 +271,9 @@
|
||||||
- name: autoclean during install
|
- name: autoclean during install
|
||||||
apt: pkg=hello state=present autoclean=yes
|
apt: pkg=hello state=present autoclean=yes
|
||||||
|
|
||||||
|
- name: undo previous install
|
||||||
|
apt: pkg=hello state=absent
|
||||||
|
|
||||||
# https://github.com/ansible/ansible/issues/23155
|
# https://github.com/ansible/ansible/issues/23155
|
||||||
- name: create a repo file
|
- name: create a repo file
|
||||||
copy:
|
copy:
|
||||||
|
|
1
test/integration/targets/apt/vars/Ubuntu-20.yml
Normal file
1
test/integration/targets/apt/vars/Ubuntu-20.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
multiarch_test_pkg: libunistring2
|
1
test/integration/targets/apt/vars/default.yml
Normal file
1
test/integration/targets/apt/vars/default.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
multiarch_test_pkg: hello
|
|
@ -2,4 +2,4 @@
|
||||||
- include: ubuntu.yml
|
- include: ubuntu.yml
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
- ansible_distribution_release != 'trusty'
|
- ansible_distribution_release not in ('trusty', 'focal')
|
||||||
|
|
|
@ -20,8 +20,10 @@
|
||||||
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
|
# https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
|
||||||
# Support for Ubuntu 14.04 has been removed from MongoDB 4.0.10+, 3.6.13+, and 3.4.21+.
|
# Support for Ubuntu 14.04 has been removed from MongoDB 4.0.10+, 3.6.13+, and 3.4.21+.
|
||||||
# CentOS6 has python version issues
|
# CentOS6 has python version issues
|
||||||
|
# Ubuntu 20.04 does not yet have the required packages
|
||||||
- meta: end_play
|
- meta: end_play
|
||||||
when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04')
|
when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04')
|
||||||
|
or (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04')
|
||||||
or (ansible_os_family == "RedHat" and ansible_distribution_major_version == '6')
|
or (ansible_os_family == "RedHat" and ansible_distribution_major_version == '6')
|
||||||
or ansible_os_family == "Suse"
|
or ansible_os_family == "Suse"
|
||||||
or ansible_distribution == 'Fedora'
|
or ansible_distribution == 'Fedora'
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
postgresql_packages:
|
||||||
|
- "postgresql"
|
||||||
|
- "postgresql-common"
|
||||||
|
- "python3-psycopg2"
|
||||||
|
|
||||||
|
pg_hba_location: "/etc/postgresql/12/main/pg_hba.conf"
|
||||||
|
pg_dir: "/var/lib/postgresql/12/main"
|
||||||
|
pg_ver: 12
|
|
@ -1,3 +1,5 @@
|
||||||
---
|
---
|
||||||
- include: ubuntu.yml
|
- include: ubuntu.yml
|
||||||
when: ansible_distribution == 'Ubuntu'
|
when:
|
||||||
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
- ansible_distribution_release != 'focal'
|
||||||
|
|
6
test/integration/targets/subversion/vars/Ubuntu-20.yml
Normal file
6
test/integration/targets/subversion/vars/Ubuntu-20.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
subversion_packages:
|
||||||
|
- subversion
|
||||||
|
- libapache2-mod-svn
|
||||||
|
apache_user: www-data
|
||||||
|
apache_group: www-data
|
|
@ -10,3 +10,4 @@ opensuse15py2 name=quay.io/ansible/opensuse15py2-test-container:1.21.0 python=2.
|
||||||
opensuse15 name=quay.io/ansible/opensuse15-test-container:1.21.0 python=3.6
|
opensuse15 name=quay.io/ansible/opensuse15-test-container:1.21.0 python=3.6
|
||||||
ubuntu1604 name=quay.io/ansible/ubuntu1604-test-container:1.21.0 python=2.7 seccomp=unconfined
|
ubuntu1604 name=quay.io/ansible/ubuntu1604-test-container:1.21.0 python=2.7 seccomp=unconfined
|
||||||
ubuntu1804 name=quay.io/ansible/ubuntu1804-test-container:1.21.0 python=3.6 seccomp=unconfined
|
ubuntu1804 name=quay.io/ansible/ubuntu1804-test-container:1.21.0 python=3.6 seccomp=unconfined
|
||||||
|
ubuntu2004 name=quay.io/ansible/ubuntu2004-test-container:1.21.0 python=3.8 seccomp=unconfined
|
||||||
|
|
Loading…
Reference in a new issue