diff --git a/handlers/main.yml b/handlers/main.yml index 6463f91..8433388 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,24 +1,24 @@ -- name: "Restart Paperless" +- name: "Restart Nextcloud App" ansible.builtin.service: - name: paperless-ngx + name: nextcloud-ngx state: restarted -- name: "Restart Paperless Redis" +- name: "Restart Nextcloud Redis" systemd_service: - name: paperless-ngx-redis + name: nextcloud-redis state: restarted -- name: "Restart Paperless Tika" +- name: "Restart Nextcloud Cron" systemd_service: - name: paperless-ngx-tika + name: nextcloud-cron state: restarted -- name: "Restart Paperless Gotenberg" +- name: "Restart Nextcloud Web" systemd_service: - name: paperless-ngx-gotenberg + name: nextcloud-web state: restarted -- name: "Restart Paperless Postgres" +- name: "Restart Nextcloud Postgres" systemd_service: - name: paperless-ngx-postgres + name: nextcloud-postgres state: restarted diff --git a/tasks/main.yml b/tasks/main.yml index a314db1..3b3f068 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -76,22 +76,10 @@ daemon_reload: true when: ansible_service_mgr == "systemd" - - name: Start Paperless-ngs Redis + - name: Start Nextcloud Redis systemd_service: enabled: true - 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 + name: nextcloud-redis state: started - name: Start Paperless-ngs Postgres @@ -99,5 +87,8 @@ enabled: true name: paperless-ngx-postgres state: started + notify: - - Restart Paperless + - Restart Nextcloud App + - Restart Nextcloud Cron + - Restart Nextcloud Web