From 2702ae93f9463be6eb4983b189ce7e376f9ff44f Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Sat, 3 Feb 2024 22:47:53 +0100 Subject: [PATCH] rename stuff --- handlers/main.yml | 20 ++++++++++---------- tasks/main.yml | 21 ++++++--------------- 2 files changed, 16 insertions(+), 25 deletions(-) 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