From 3c9c647984fa50f9690e00433e60403771cfb895 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 25 Oct 2023 18:35:43 +0200 Subject: [PATCH] Fixes --- handlers/main.yml | 2 +- tasks/gateway.yml | 3 ++- tasks/webserver.yml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index cfb8a2f..8196c72 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -13,7 +13,7 @@ ansible.builtin.command: dehydrated --cron -g delegate_to: "{{ gateway_host }}" -- name: reload nginx +- name: Reload nginx ansible.builtin.service: name: nginx state: reloaded diff --git a/tasks/gateway.yml b/tasks/gateway.yml index 65bd6af..92aa521 100644 --- a/tasks/gateway.yml +++ b/tasks/gateway.yml @@ -24,10 +24,11 @@ owner: root group: root mode: "0644" + notify: Reload nginx - name: "Gateway | Aktiviere Seite | {{ item.name }}" ansible.builtin.file: src: "/etc/nginx/sites-available/{{ item.name }}" dest: "/etc/nginx/sites-enabled/{{ item.name }}" state: link - notify: reload nginx + notify: Reload nginx diff --git a/tasks/webserver.yml b/tasks/webserver.yml index 400e65a..fb6e747 100644 --- a/tasks/webserver.yml +++ b/tasks/webserver.yml @@ -41,7 +41,6 @@ - name: "Konfiguriere Nginx" when: nextcloud_webserver == "Nginx" tags: nginx - loop: "{{ nextcloud_instances }}" notify: Reload nginx block: - name: "Webserver | Kopiere Nginx-Konfiguration" @@ -49,9 +48,11 @@ src: nginx/nginx.conf dest: "/etc/nginx/sites-available/{{ item.name }}" mode: "0644" + loop: "{{ nextcloud_instances }}" - name: "Webserver | Aktiviere Nginx-Konfiguration" ansible.builtin.file: src: "/etc/nginx/sites-available/{{ item.name }}" dest: "/etc/nginx/sites-enabled/{{ item.name }}" state: link + loop: "{{ nextcloud_instances }}"