Skip to content

Commit

Permalink
test: use ansible_python_interpreter
Browse files Browse the repository at this point in the history
The ostree testing was failing because /usr/bin/python was
not found.

Just use ansible_python_interpreter to use the same python
intepreter used by ansible.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Aug 22, 2024
1 parent 5737001 commit 2dfc80c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/tests_trusted_execution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@
- "{{ __test_fpd_exe1 }}"
- "{{ __test_fpd_exe2 }}"
vars:
__python: "{{ '/usr/libexec/platform-python'
if (ansible_facts['distribution_major_version'] == '8' and
ansible_facts['os_family'] == 'RedHat')
else '/usr/bin/python' }}"
__python: "{{ ansible_python_interpreter |
d(discovered_interpreter_python) }}"

- name: Create a new user
user:
Expand Down

0 comments on commit 2dfc80c

Please sign in to comment.