aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/aws/handlers/main.yaml
blob: bc160a32635728c94bb7855c5df6fdc31b302a98 (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: roles/aws/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