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