mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
33
roles/common/handlers/main.yml
Normal file
33
roles/common/handlers/main.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: rehash postfix
|
||||
command: "postmap /etc/postfix/{{ item }}"
|
||||
with_items:
|
||||
- relay_auth
|
||||
|
||||
- name: restart postfix
|
||||
service: name=postfix state=restarted
|
||||
|
||||
- name: newaliases
|
||||
command: newaliases
|
||||
|
||||
- name: restart journald
|
||||
service: name=systemd-journald state=restarted
|
||||
|
||||
- name: systemd-tmpfiles
|
||||
command: systemd-tmpfiles --create
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: restart crond
|
||||
service: name=crond state=restarted
|
||||
|
||||
- name: restart journal-upload
|
||||
service: name=systemd-journal-upload state=restarted
|
||||
when: remote_journal is defined
|
||||
|
||||
- name: restart journald
|
||||
service: name=systemd-journald state=restarted
|
||||
|
||||
- name: load kmods
|
||||
service: name=systemd-modules-load state=restarted
|
Reference in New Issue
Block a user