some cleanup for python-test.yml
This commit is contained in:
@ -10,13 +10,6 @@
|
|||||||
|
|
||||||
|
|
||||||
tasks:
|
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
|
- name: Install python packages
|
||||||
package :
|
package :
|
||||||
name : "{{ item }}"
|
name : "{{ item }}"
|
||||||
@ -51,7 +44,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Execute sample script
|
- name: Execute sample script
|
||||||
command : "{{ ansible_python_interpreter }} /tmp/pytest.py"
|
command : "{{ ansible_python.executable }} /tmp/pytest.py"
|
||||||
register : r_sample_script
|
register : r_sample_script
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user