Support non standard Python path
* Fixes package check when ansible_python_interpreter config is used in inventory file. Change-Id: Ia8b659057460c669be5f53ba2b3bf4625e496fe9
This commit is contained in:
parent
7f3d7a30d9
commit
d1811b4c0c
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Checking docker-py version
|
- name: Checking docker-py version
|
||||||
command: python -c "import docker; print docker.__version__"
|
command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\""
|
||||||
register: result
|
register: result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: result | failed or
|
failed_when: result | failed or
|
||||||
|
Loading…
Reference in New Issue
Block a user