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

24 lines
463 B
YAML

- name: restart openssh
service:
name: ssh
state: restarted
- 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 }}
- name: reload autofs
service:
name: autofs
state: restarted
when: autofs_started is not changed