feat: restart multiple handlers

This commit is contained in:
Lennard Brinkhaus 2023-09-20 22:52:24 +02:00
parent 7922206e61
commit 0055efe918
Signed by: lennard.brinkhaus
GPG Key ID: 286421EC53998B22
2 changed files with 40 additions and 2 deletions

View File

@ -2,3 +2,23 @@
ansible.builtin.service: ansible.builtin.service:
name: paperless-ngx name: paperless-ngx
state: restarted state: restarted
- name: "Restart Paperless Redis"
systemd_service:
name: paperless-ngx-redis
state: restarted
- name: "Restart Paperless Tika"
systemd_service:
name: paperless-ngx-tika
state: restarted
- name: "Restart Paperless Gotenberg"
systemd_service:
name: paperless-ngx-gotenberg
state: restarted
- name: "Restart Paperless Postgres"
systemd_service:
name: paperless-ngx-postgres
state: restarted

View File

@ -85,10 +85,28 @@
daemon_reload: true daemon_reload: true
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: Start Paperless-ngs - name: Start Paperless-ngs Redis
systemd_service: systemd_service:
enabled: true enabled: true
name: paperless-ngx name: paperless-ngx-redis
state: started
- name: Start Paperless-ngs Tika
systemd_service:
enabled: true
name: paperless-ngx-tika
state: started
- name: Start Paperless-ngs Gotenberg
systemd_service:
enabled: true
name: paperless-ngx-gotenberg
state: started
- name: Start Paperless-ngs Postgres
systemd_service:
enabled: true
name: paperless-ngx-postgres
state: started state: started
notify: notify:
- Restart Paperless - Restart Paperless