Merge "Fix prechecks fail with docker not in deployment host"
This commit is contained in:
commit
641a7f2790
@ -3,6 +3,7 @@
|
|||||||
command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\""
|
command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\""
|
||||||
register: result
|
register: result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: inventory_hostname in groups['baremetal']
|
||||||
failed_when: result | failed or
|
failed_when: result | failed or
|
||||||
result.stdout | version_compare(docker_py_version_min, '<')
|
result.stdout | version_compare(docker_py_version_min, '<')
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
command: docker version
|
command: docker version
|
||||||
register: result
|
register: result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
when: inventory_hostname in groups['baremetal']
|
||||||
failed_when: result | failed
|
failed_when: result | failed
|
||||||
or (result.stdout | from_yaml).Server.Version | regex_replace('(\\d+\\.\\d+\\.\\d+).*', '\\1') | version_compare(docker_version_min, '<')
|
or (result.stdout | from_yaml).Server.Version | regex_replace('(\\d+\\.\\d+\\.\\d+).*', '\\1') | version_compare(docker_version_min, '<')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user