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:
Niklas Wik 2017-01-24 10:52:42 +02:00
parent 7f3d7a30d9
commit d1811b4c0c

View File

@ -1,6 +1,6 @@
---
- 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
changed_when: false
failed_when: result | failed or