From d1811b4c0c7e0cbec9c59aeae84a22712a528904 Mon Sep 17 00:00:00 2001 From: Niklas Wik Date: Tue, 24 Jan 2017 10:52:42 +0200 Subject: [PATCH] Support non standard Python path * Fixes package check when ansible_python_interpreter config is used in inventory file. Change-Id: Ia8b659057460c669be5f53ba2b3bf4625e496fe9 --- ansible/roles/prechecks/tasks/package_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/prechecks/tasks/package_checks.yml b/ansible/roles/prechecks/tasks/package_checks.yml index 49d2037c4e..4da8264afd 100644 --- a/ansible/roles/prechecks/tasks/package_checks.yml +++ b/ansible/roles/prechecks/tasks/package_checks.yml @@ -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