k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
680 B
33 lines
680 B
---
|
|
|
|
- name: install ELRepo key
|
|
rpm_key:
|
|
state: present
|
|
key: '{{ elrepo_key_url }}'
|
|
|
|
- name: install elrepo repository
|
|
yum:
|
|
name: '{{elrepo_url}}'
|
|
state: present
|
|
|
|
- name: upgrade kernel
|
|
yum:
|
|
name: "{{elrepo_kernel_package}}"
|
|
state: present
|
|
enablerepo: elrepo-kernel
|
|
register: upgrade
|
|
|
|
- name: change default grub entry
|
|
lineinfile:
|
|
dest: '/etc/default/grub'
|
|
regexp: '^GRUB_DEFAULT=.*'
|
|
line: 'GRUB_DEFAULT=0'
|
|
when: upgrade.changed
|
|
register: grub_entry
|
|
|
|
- name: re-generate grub-config
|
|
command: grub2-mkconfig -o /boot/grub2/grub.cfg
|
|
when: upgrade.changed and grub_entry.changed
|
|
|
|
- include: reboot.yml
|
|
when: upgrade.changed
|