diff --git a/handlers/main.yml b/handlers/main.yml index 3fde42c..6463f91 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 701e385..087a92c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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