From fb5d1a2ab87b0b66ba201eda590e0b8e04d690fd Mon Sep 17 00:00:00 2001 From: neith00 Date: Thu, 26 Jan 2017 16:28:48 +0100 Subject: [PATCH] Using the command module instead of raw Using the command module instead of raw. Also fixed the syntax. --- roles/docker/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index ead201408..1bb5524fe 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -69,7 +69,7 @@ when: (not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]) and (docker_package_info.pkgs|length > 0) - name: check minimum docker version for docker_dns mode. You need at least docker version >= 1.12 for resolvconf_mode=docker_dns - raw: docker version -f "{{ '{{' }}.Client.Version{{ '}}' }}" + command: "docker version -f '{{ '{{' }}.Client.Version{{ '}}' }}'" register: docker_version failed_when: docker_version.stdout|version_compare('1.12', '<') changed_when: false