Use ansible_python.executable isntead of hardcoding python

Change-Id: Id264de1fd64b52fc0ca256e8eba9ad975879002e
This commit is contained in:
Sai Sindhur Malleni 2019-11-05 14:16:56 -05:00
parent 2ba39b30ab
commit 1b9718b51e

View File

@ -31,5 +31,5 @@
- hosts: stockpile
tasks:
- name: run prescribe
command: python {{ browbeat_path }}/browbeat/prescribe.py {{ browbeat_path }}/metadata
command: '"{{ ansible_python.executable }}" {{ browbeat_path }}/browbeat/prescribe.py {{ browbeat_path }}/metadata'