mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 12:03:58 -07:00
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:
parent
c43a10bd69
commit
c59e32469f
12 changed files with 189 additions and 22 deletions
|
|
@ -149,26 +149,21 @@
|
|||
|
||||
# ENV LOOKUP
|
||||
|
||||
- name: get first environment var name
|
||||
shell: env | fgrep -v '.' | head -n1 | cut -d\= -f1
|
||||
register: known_var_name
|
||||
- name: get HOME environment var value
|
||||
shell: "echo $HOME"
|
||||
register: home_var_value
|
||||
|
||||
- name: get first environment var value
|
||||
shell: echo {{ '$' + known_var_name.stdout }}
|
||||
register: known_var_value
|
||||
|
||||
- name: use env lookup to get known var
|
||||
- name: use env lookup to get HOME var
|
||||
set_fact:
|
||||
test_val: "{{ lookup('env', known_var_name.stdout) }}"
|
||||
test_val: "{{ lookup('env', 'HOME') }}"
|
||||
|
||||
- debug: var=known_var_name.stdout
|
||||
- debug: var=known_var_value.stdout
|
||||
- debug: var=home_var_value.stdout
|
||||
- debug: var=test_val
|
||||
|
||||
- name: compare values
|
||||
assert:
|
||||
that:
|
||||
- "test_val == known_var_value.stdout"
|
||||
- "test_val == home_var_value.stdout"
|
||||
|
||||
|
||||
# PIPE LOOKUP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue