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