feat: restart multiple handlers
This commit is contained in:
parent
7922206e61
commit
0055efe918
@ -2,3 +2,23 @@
|
||||
ansible.builtin.service:
|
||||
name: paperless-ngx
|
||||
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
|
||||
|
@ -85,10 +85,28 @@
|
||||
daemon_reload: true
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
- name: Start Paperless-ngs
|
||||
- name: Start Paperless-ngs Redis
|
||||
systemd_service:
|
||||
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
|
||||
notify:
|
||||
- Restart Paperless
|
||||
|
Loading…
Reference in New Issue
Block a user