From 87d01fd4acefd47a2f5647062acf037d6b3f9163 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 11 Mar 2022 17:39:15 -0500 Subject: [PATCH] some cleanup for python-test.yml --- python-test.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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