Browse Source

Merge pull request #946 from neith00/master

Using the command module instead of raw
pull/1084/head
Bogdan Dobrelya 7 years ago
committed by GitHub
parent
commit
27b4e61c9f
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/docker/tasks/main.yml

2
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) 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 - 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 register: docker_version
failed_when: docker_version.stdout|version_compare('1.12', '<') failed_when: docker_version.stdout|version_compare('1.12', '<')
changed_when: false changed_when: false

Loading…
Cancel
Save