forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system-upgrade to upgrade-cluster playbook (kubernetes-sigs#10184)
- Loading branch information
1 parent
1a25f0f
commit e8ff1d2
Showing
6 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: APT Dist-Upgrade | ||
apt: | ||
upgrade: dist | ||
autoremove: true | ||
dpkg_options: force-confold,force-confdef | ||
register: apt_upgrade | ||
|
||
- name: Reboot after APT Dist-Upgrade # noqa no-handler | ||
when: | ||
- apt_upgrade.changed or system_upgrade_reboot == 'always' | ||
- system_upgrade_reboot != 'never' | ||
reboot: |
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,17 @@ | ||
--- | ||
- name: APT upgrade | ||
when: | ||
- system_upgrade | ||
- ansible_os_family == "Debian" | ||
include_tasks: apt.yml | ||
tags: | ||
- system-upgrade-apt | ||
|
||
- name: YUM upgrade | ||
when: | ||
- system_upgrade | ||
- ansible_os_family == "RedHat" | ||
- not is_fedora_coreos | ||
include_tasks: yum.yml | ||
tags: | ||
- system-upgrade-yum |
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,12 @@ | ||
--- | ||
- name: YUM upgrade all packages # noqa package-latest | ||
yum: | ||
name: '*' | ||
state: latest | ||
register: yum_upgrade | ||
|
||
- name: Reboot after YUM upgrade # noqa no-handler | ||
when: | ||
- yum_upgrade.changed or system_upgrade_reboot == 'always' | ||
- system_upgrade_reboot != 'never' | ||
reboot: |