#323 Set python3 interpreter for source role for RHEL8.
Merged 5 years ago by astepano. Opened 5 years ago by astepano.

@@ -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

CI passed,
I tested on my env.

Commit 28a08c9 fixes this pull-request

Pull-Request has been merged by astepano

5 years ago

Pull-Request has been merged by astepano

5 years ago