Added daemon_reload: yes for multiple handlers

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-29 11:40:13 +01:00
parent 3dff22a16a
commit ee34a74bea
4 changed files with 42 additions and 14 deletions

View File

@ -1,4 +1,12 @@
- name: restart certbot service
service: name=certbot.service state=restarted enabled=yes
- name: restart certbot timer
service: name=certbot.timer state=restarted enabled=yes
- name: "restart certbot service"
systemd:
name: certbot.service
state: restarted
enabled: yes
daemon_reload: yes
- name: "restart certbot timer"
systemd:
name: certbot.timer
state: restarted
enabled: yes
daemon_reload: yes

View File

@ -1,4 +1,12 @@
- name: restart docker-volume-backup service
service: name=docker-volume-backup.service state=restarted enabled=yes
- name: restart docker-volume-backup timer
service: name=docker-volume-backup.timer state=restarted enabled=yes
- name: "restart docker-volume-backup service"
systemd:
name: docker-volume-backup.service
state: restarted
enabled: yes
daemon_reload: yes
- name: "restart docker-volume-backup timer"
systemd:
name: docker-volume-backup.timer
state: restarted
enabled: yes
daemon_reload: yes

View File

@ -1,4 +1,12 @@
- name: restart pull-remote-backups service
service: name=pull-remote-backups.service state=restarted enabled=yes
- name: restart pull-remote-backups timer
service: name=pull-remote-backups.timer state=restarted enabled=yes
- name: "restart pull-remote-backups service"
systemd:
name: pull-remote-backups.service
state: restarted
enabled: yes
daemon_reload: yes
- name: "restart pull-remote-backups timer"
systemd:
name: pull-remote-backups.timer
state: restarted
enabled: yes
daemon_reload: yes

View File

@ -1,2 +1,6 @@
- name: restart wireguard
service: name=wg-quick@wg0.service state=restarted enabled=yes
- name: "restart wireguard"
systemd:
name: wg-quick@wg0.service
state: restarted
enabled: yes
daemon_reload: yes