diff --git a/python-test.yml b/python-test.yml index 739d114..3a858b4 100644 --- a/python-test.yml +++ b/python-test.yml @@ -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