Merge "Fix the Prechecks failed while checking docker version"
This commit is contained in:
commit
e720e10fee
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Checking Docker version
|
- name: Checking Docker version
|
||||||
command: docker version
|
command: docker --version
|
||||||
register: result
|
register: result
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: inventory_hostname in groups['baremetal']
|
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 | regex_replace('.*(\\d+\\.\\d+\\.\\d+).*', '\\1') | version_compare(docker_version_min, '<')
|
||||||
|
|
||||||
# NOTE(mgoddard): If passwords.yml is encrypted using ansible-vault, this check
|
# NOTE(mgoddard): If passwords.yml is encrypted using ansible-vault, this check
|
||||||
# will pass, but only because nothing in the vault file has the format of a
|
# will pass, but only because nothing in the vault file has the format of a
|
||||||
|
Loading…
Reference in New Issue
Block a user