diff --git a/ansible/roles/prechecks/tasks/package_checks.yml b/ansible/roles/prechecks/tasks/package_checks.yml index 8dccfea426..7daa33cea8 100644 --- a/ansible/roles/prechecks/tasks/package_checks.yml +++ b/ansible/roles/prechecks/tasks/package_checks.yml @@ -3,6 +3,7 @@ command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\"" register: result changed_when: false + when: inventory_hostname in groups['baremetal'] failed_when: result | failed or result.stdout | version_compare(docker_py_version_min, '<') diff --git a/ansible/roles/prechecks/tasks/service_checks.yml b/ansible/roles/prechecks/tasks/service_checks.yml index 1b09a607a0..22a52f18c8 100644 --- a/ansible/roles/prechecks/tasks/service_checks.yml +++ b/ansible/roles/prechecks/tasks/service_checks.yml @@ -3,6 +3,7 @@ command: docker version register: result changed_when: false + when: inventory_hostname in groups['baremetal'] failed_when: result | failed or (result.stdout | from_yaml).Server.Version | regex_replace('(\\d+\\.\\d+\\.\\d+).*', '\\1') | version_compare(docker_version_min, '<')