|
|
|
@ -24,6 +24,13 @@
|
|
|
|
|
- "kmod-wireguard"
|
|
|
|
|
- "wireguard-tools"
|
|
|
|
|
state: present
|
|
|
|
|
register: wireguard__centos7_yum_updates
|
|
|
|
|
|
|
|
|
|
- name: (CentOS 7) Reboot Instance to update kernel
|
|
|
|
|
ansible.builtin.reboot:
|
|
|
|
|
reboot_timeout: "{{ wireguard_centos7_standard_reboot_timeout }}"
|
|
|
|
|
when:
|
|
|
|
|
- wireguard__centos7_yum_updates.changed is true
|
|
|
|
|
|
|
|
|
|
- name: (CentOS 7) Ensure WireGuard DKMS package is removed
|
|
|
|
|
ansible.builtin.yum:
|
|
|
|
@ -58,11 +65,11 @@
|
|
|
|
|
- "kernel-plus"
|
|
|
|
|
- "wireguard-tools"
|
|
|
|
|
state: present
|
|
|
|
|
register: centos7_yum_updates
|
|
|
|
|
register: wireguard__centos7_yum_updates
|
|
|
|
|
|
|
|
|
|
- name: (CentOS 7) Reboot Instance to update kernel
|
|
|
|
|
ansible.builtin.reboot:
|
|
|
|
|
reboot_timeout: "{{ wireguard_centos7_kernel_plus_reboot_timeout }}"
|
|
|
|
|
when:
|
|
|
|
|
- centos7_yum_updates.changes is defined
|
|
|
|
|
- centos7_yum_updates.changes.installed|flatten|select('regex', '^kernel-plus$') is any
|
|
|
|
|
- wireguard__centos7_yum_updates.changes is defined
|
|
|
|
|
- wireguard__centos7_yum_updates.changes.installed|flatten|select('regex', '^kernel-plus$') is any
|
|
|
|
|