aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/aws/handlers/main.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2022-10-24 12:11:36 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-10-26 13:14:46 +0000
commit7566d9fe1ff86a7dab3de09f9477e50d60a12dfc (patch)
treeb52a18dac48877848ca65e9c064a925499904806 /fdio.infra.ansible/roles/aws/handlers/main.yaml
parent82419f7f8a1b08c7451340b413e54486bd4c0b9b (diff)
fix(packer): AWS images
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: Ia725b895eab531f106ebf4919a0fc455447b5d9a
Diffstat (limited to 'fdio.infra.ansible/roles/aws/handlers/main.yaml')
-rw-r--r--fdio.infra.ansible/roles/aws/handlers/main.yaml19
1 files changed, 12 insertions, 7 deletions
diff --git a/fdio.infra.ansible/roles/aws/handlers/main.yaml b/fdio.infra.ansible/roles/aws/handlers/main.yaml
index 7363dc2c34..d55db1c22f 100644
--- a/fdio.infra.ansible/roles/aws/handlers/main.yaml
+++ b/fdio.infra.ansible/roles/aws/handlers/main.yaml
@@ -1,15 +1,20 @@
---
# file: roles/aws/handlers/main.yaml
-- name: Reboot server
- reboot:
- reboot_timeout: 3600
- tags:
- - reboot-server
-
-- name: AWS - Reload systemd-modules
+- name: Reload systemd-modules
systemd:
name: "systemd-modules-load"
state: "restarted"
tags:
- reload-systemd-modules
+
+- name: Update GRUB
+ ansible.builtin.command: update-grub
+ tags:
+ - update-grub
+
+- name: Reboot Server
+ ansible.builtin.reboot:
+ reboot_timeout: 3600
+ tags:
+ - reboot-server