some cleanup for python-test.yml

This commit is contained in:
Chris Hammer
2022-03-11 17:39:15 -05:00
parent d6d8a796fe
commit 87d01fd4ac

View File

@ -10,13 +10,6 @@
tasks:
- name: Set ansible_python_interpreter if not defined
set_fact:
ansible_python_interpreter: /usr/bin/python
when:
- ansible_python_interpreter is not defined
- name: Install python packages
package :
name : "{{ item }}"
@ -51,7 +44,7 @@
- name: Execute sample script
command : "{{ ansible_python_interpreter }} /tmp/pytest.py"
command : "{{ ansible_python.executable }} /tmp/pytest.py"
register : r_sample_script