|
|
|
@ -37,3 +37,11 @@ |
|
|
|
|
- name: Upgrading packages |
|
|
|
|
apt: |
|
|
|
|
upgrade: yes |
|
|
|
|
- name: Upgrade plan |
|
|
|
|
shell: "kubeadm upgrade plan >> /etc/kubernetes/upgrade_plan_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}}" |
|
|
|
|
args: |
|
|
|
|
creates: /etc/kubernetes/upgrade_plan_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}} |
|
|
|
|
- name: Apply upgrade plan |
|
|
|
|
shell: "sudo kubeadm upgrade apply v1.27.13 >> /etc/kubernetes/upgrade_ops_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}}" |
|
|
|
|
args: |
|
|
|
|
creates: /etc/kubernetes/upgrade_ops_{{ K8S_SOURCE_VERSION}}_{{ K8S_TARGET_VERSION}} |