diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/kernel')
3 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/kernel/handlers/main.yaml b/resources/tools/testbed-setup/ansible/roles/kernel/handlers/main.yaml new file mode 100644 index 0000000000..3d30a0973c --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/kernel/handlers/main.yaml @@ -0,0 +1,6 @@ +--- +# file roles/kernel/handlers/main.yaml + +- name: Reboot Server + reboot: + reboot_timeout: 3600 diff --git a/resources/tools/testbed-setup/ansible/roles/kernel/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/kernel/tasks/main.yaml index bf8ea9fa68..4c63c709a6 100644 --- a/resources/tools/testbed-setup/ansible/roles/kernel/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/kernel/tasks/main.yaml @@ -4,3 +4,5 @@ - name: Kernel - Install distribution - release include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml' tags: install-kernel + +- meta: flush_handlers diff --git a/resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_bionic.yaml b/resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_bionic.yaml index c9c561df6f..3cb79352ee 100644 --- a/resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_bionic.yaml +++ b/resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_bionic.yaml @@ -33,6 +33,8 @@ apt_kernel_list, kernel_version, ansible_kernel) }}" state: absent purge: true + notify: + - "Reboot Server" tags: install-kernel - name: Kernel - Ensure Any Microcode Is Absent |