File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Version unlocking the packages, if you want to update the docker packages.
2
+ - name : install versionlock package
3
+ package :
4
+ name : " yum-plugin-versionlock"
5
+ state : present
6
+
7
+ - name : Version Unlock Docker packages
8
+ community.general.yum_versionlock :
9
+ state : absent
10
+ name :
11
+ - containerd-io
12
+ - docker-ce
13
+ - docker-ce-cli
14
+ register : lock_status
15
+ # If packages were already locked, the unlock/lock will not be a change.
16
+ changed_when : lock_status is not changed
17
+
1
18
- name : install docker packages
2
19
package :
3
20
name : " {{ item }}"
38
55
39
56
- name : make sure docker is running
40
57
include_tasks : docker-daemon-running.yml
58
+
59
+ # Version locking the packages, so other package update operations do not interfere
60
+ # with docker packages.
61
+ - name : Version Lock Docker packages
62
+ community.general.yum_versionlock :
63
+ state : present
64
+ name :
65
+ - containerd-io
66
+ - docker-ce
67
+ - docker-ce-cli
68
+ changed_when : lock_status is changed
You can’t perform that action at this time.
0 commit comments