some cleanup for python-test.yml
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user