| |
@@ -9,6 +9,15 @@
|
| |
- name: Extract package source code
|
| |
delegate_to: executor
|
| |
block:
|
| |
+ - name: Set ansible_python_interpreter to /usr/bin/python3
|
| |
+ delegate_facts: True
|
| |
+ set_fact:
|
| |
+ ansible_python_interpreter: /usr/bin/python3
|
| |
+ # lookup() - runs always on test-runner
|
| |
+ when:
|
| |
+ - lookup('file', '/etc/os-release') | regex_search("^ID=\"*rhel", multiline=True)
|
| |
+ - lookup('file', '/etc/os-release') | regex_search("^VERSION_ID=\"*8", multiline=True)
|
| |
+
|
| |
- name: Gather facts
|
| |
setup:
|
| |
# Just minimum subset should be enough for what we need
|
| |
Signed-off-by: Andrei Stepanov astepano@redhat.com