ansible-infra/roles/common/handlers/main.yml

28 lines
561 B
YAML
Raw Normal View History

2020-04-13 14:46:45 +02:00
- name: restart openssh
service:
name: ssh
state: restarted
2020-11-28 20:47:30 +01:00
- name: reload postfix
service:
name: postfix
state: reloaded
- name: update aliases
command: newaliases
- name: update postfix senders
command: postmap {{ postfix_senders_map_path }}
- name: update postfix secrets
command: postmap {{ postfix_sasl_secrets_path }}
2020-04-13 14:46:45 +02:00
- name: reload nginx
include_tasks: ../handlers/nginx.yml
2020-11-28 20:47:30 +01:00
when: nginx_started is not changed
- name: reload autofs
service:
name: autofs
state: restarted
when: autofs_started is not changed