diff options
author | pmikus <pmikus@cisco.com> | 2020-05-20 15:05:49 +0000 |
---|---|---|
committer | pmikus <pmikus@cisco.com> | 2020-05-20 15:05:49 +0000 |
commit | 5c7b32f5ba60acae88af6e838c79639d68a4fcad (patch) | |
tree | 601fe25983529d20abf31b43f9b21ab8bdf35e12 /resources/tools/testbed-setup/ansible/roles/kernel | |
parent | 1881e1a4a59c3bd4a8574a1a0239a781874a48ec (diff) |
Infra: Ansible maintenance
+ As per last discoveries when running from_scratch vs. append_only
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I8b44314185bbc157a67136730dc6146d133c7cc4
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 |