Files
ansible-role-common/handlers/main.yml

34 lines
596 B
YAML
Raw Normal View History

2016-06-29 12:34:37 +12:00
---
# handlers file for guisea.common
- name: Restart Postfix
service:
name: postfix
2018-01-24 13:47:35 +13:00
state: reloaded
2018-06-26 10:31:25 +12:00
2016-06-29 12:34:37 +12:00
- name: Restart SSH
service:
name: sshd
state: restarted
2018-06-26 10:31:25 +12:00
2016-06-29 12:34:37 +12:00
- name: Restart NTPD
service:
name: ntpd
2016-09-08 10:56:24 +12:00
state: restarted
2018-06-26 10:31:25 +12:00
2016-09-08 10:56:24 +12:00
- name: reboot windows
2016-11-15 14:57:17 +13:00
win_reboot:
2018-06-26 10:31:25 +12:00
2016-11-15 14:57:17 +13:00
- name: restart NetworkManager
service:
name: NetworkManager
2018-06-26 10:31:25 +12:00
state: restarted
2018-06-27 14:53:22 +12:00
- name: Check if grub.cfg exists
stat:
path: /boot/grub2/grub.cfg
register: grub_cfg
2018-06-27 14:53:22 +12:00
- name: Update GRUB
command: /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
when: grub_cfg.stat.exists