-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Docker 1.10 requirement temporarily.
Docker 1.10 is not widely available in RHEL / CentOS yet, lets remove the restriction for users of master / origin. We can revert as soon as it's available publically.
- Loading branch information
Showing
3 changed files
with
17 additions
and
31 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/docker_upgrade.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: Check if Docker is installed | ||
command: rpm -q docker | ||
register: pkg_check | ||
failed_when: pkg_check.rc > 1 | ||
changed_when: no | ||
|
||
- name: Upgrade Docker | ||
command: "{{ ansible_pkg_mgr}} update -y docker" | ||
when: pkg_check.rc == 0 and g_docker_version.curr_version | version_compare('1.9','<') | ||
register: docker_upgrade | ||
|
||
- name: Restart Docker | ||
command: systemctl restart docker | ||
when: docker_upgrade | changed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters