Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
f5885d05
Unverified
Commit
f5885d05
authored
Sep 29, 2021
by
Peter Pan
Committed by
GitHub
Sep 29, 2021
Browse files
Options
Downloads
Patches
Plain Diff
In CentOS 8.x Docker install Step: remove podman when existing (#8016)
parent
af949cd9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/container-engine/docker/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/container-engine/docker/defaults/main.yml
roles/container-engine/docker/tasks/pre-upgrade.yml
+11
-0
11 additions, 0 deletions
roles/container-engine/docker/tasks/pre-upgrade.yml
with
15 additions
and
0 deletions
roles/container-engine/docker/defaults/main.yml
+
4
−
0
View file @
f5885d05
...
@@ -33,6 +33,10 @@ docker_remove_packages_yum:
...
@@ -33,6 +33,10 @@ docker_remove_packages_yum:
-
docker-logrotate
-
docker-logrotate
-
docker-engine-selinux.noarch
-
docker-engine-selinux.noarch
# remove podman to avoid containerd.io confliction
podman_remove_packages_yum
:
-
podman
docker_remove_packages_apt
:
docker_remove_packages_apt
:
-
docker
-
docker
-
docker-engine
-
docker-engine
...
...
This diff is collapsed.
Click to expand it.
roles/container-engine/docker/tasks/pre-upgrade.yml
+
11
−
0
View file @
f5885d05
...
@@ -15,6 +15,17 @@
...
@@ -15,6 +15,17 @@
-
ansible_os_family == 'Debian'
-
ansible_os_family == 'Debian'
-
(docker_versioned_pkg[docker_version | string] is search('docker-ce'))
-
(docker_versioned_pkg[docker_version | string] is search('docker-ce'))
-
name
:
Ensure podman not installed. | RedHat
package
:
name
:
'
{{
podman_remove_packages_yum
}}'
state
:
absent
when
:
-
ansible_os_family == 'RedHat'
-
(docker_versioned_pkg[docker_version | string] is search('docker-ce'))
-
not is_ostree
-
name
:
Ensure old versions of Docker are not installed. | RedHat
-
name
:
Ensure old versions of Docker are not installed. | RedHat
package
:
package
:
name
:
'
{{
docker_remove_packages_yum
}}'
name
:
'
{{
docker_remove_packages_yum
}}'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment