Add Fedora Python 3 Docker images and fix tests. (#27794)

* Add new Fedora docker images with Python 3.
* Use consistent env var for lookup test.
* Fix testing of virtualenv with Python 3.
* Fix docker_secret tests on Fedora 26.
* Add Python 3 support to Fedora postgresql test.
* Add Python 3 support to Fedora mysql tests.
* Fix uri test server for Python 3 on Fedora.
* Fix iso_extract test for Python 3 on Fedora.
* Add Python 3 support for Fedora to openssl tests.
* Fix dnf group test for Python 3 on Fedora.
* Use force with user deletion in become test.
This commit is contained in:
Matt Clay 2017-08-04 21:12:35 -07:00 committed by GitHub
commit c59e32469f
12 changed files with 189 additions and 22 deletions

View file

@ -242,9 +242,11 @@
register: dnf_result
# GROUP INSTALL
- name: install RPM Development Tools group
# Using 'Books and Guides' because it is only 5 packages and a 7.3 M download on Fedora 26.
# It also doesn't install anything that will tamper with our Python environment.
- name: install Books and Guides group
dnf:
name: "@RPM Development Tools"
name: "@Books and Guides"
state: present
register: dnf_result
@ -263,14 +265,14 @@
- "'results' in dnf_result"
# cleanup until https://github.com/ansible/ansible/issues/27377 is resolved
- shell: dnf -y group install "RPM Development Tools" && dnf -y group remove "RPM Development Tools"
- shell: dnf -y group install "Books and Guides" && dnf -y group remove "Books and Guides"
# GROUP UPGRADE - this will go to the same method as group install
# but through group_update - it is its invocation we're testing here
# see commit 119c9e5d6eb572c4a4800fbe8136095f9063c37b
- name: install latest RPM Development Tools
- name: install latest Books and Guides
dnf:
name: "@RPM Development Tools"
name: "@Books and Guides"
state: latest
register: dnf_result
@ -289,4 +291,4 @@
- "'results' in dnf_result"
# cleanup until https://github.com/ansible/ansible/issues/27377 is resolved
- shell: dnf -y group install "RPM Development Tools" && dnf -y group remove "RPM Development Tools"
- shell: dnf -y group install "Books and Guides" && dnf -y group remove "Books and Guides"