Skip to content
Snippets Groups Projects
Commit 66b61866 authored by rongzhang's avatar rongzhang
Browse files

Fix check docker error for atomic

Fix issues #2611
parent 0210e53b
Branches
Tags
No related merge requests found
......@@ -6,7 +6,9 @@
with_items:
- docker
- docker-engine
when: ansible_os_family == 'Debian' and (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
when:
- ansible_os_family == 'Debian'
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
- name: Ensure old versions of Docker are not installed. | RedHat
package:
......@@ -17,4 +19,7 @@
- docker-common
- docker-engine
- docker-selinux
when: ansible_os_family == 'RedHat' and (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
\ No newline at end of file
when:
- ansible_os_family == 'RedHat'
- (docker_versioned_pkg[docker_version | string] | search('docker-ce'))
- not is_atomic
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment