Using the command module instead of raw

Using the command module instead of raw.
Also fixed the syntax.
This commit is contained in:
neith00 2017-01-26 16:28:48 +01:00 committed by GitHub
parent a627299468
commit bbc8c09753

View file

@ -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