aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/aws/handlers/main.yaml
blob: b9680b10ea20731c31cce43d84235e72c7c54b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
# file: handlers/main.yaml

- 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

- name: "Restart SSHd"
  ansible.builtin.service:
    name: "sshd"
    state: restarted