Initial commit
This commit is contained in:
27
roles/common/handlers/main.yml
Normal file
27
roles/common/handlers/main.yml
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
|
||||
- name: Update timezone
|
||||
command: dpkg-reconfigure --frontend noninteractive tzdata
|
||||
|
||||
#- name: Restart ssh
|
||||
# shell: sleep 3; systemctl restart sshd
|
||||
# async: 1
|
||||
# poll: 0
|
||||
|
||||
# Does NOT Work
|
||||
#
|
||||
# Error was:
|
||||
# Start request repeated too quickly.
|
||||
#
|
||||
# See also: https://github.com/ansible/ansible-modules-core/issues/1533
|
||||
#
|
||||
- name: Restart ssh
|
||||
service:
|
||||
name: ssh
|
||||
state: restarted
|
||||
|
||||
- name: Restart postfix
|
||||
service:
|
||||
name: postfix
|
||||
state: restarted
|
||||
|
Reference in New Issue
Block a user