This commit is contained in:
phil 2023-10-25 18:35:43 +02:00
parent 9d279dc190
commit 3c9c647984
3 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,7 @@
ansible.builtin.command: dehydrated --cron -g ansible.builtin.command: dehydrated --cron -g
delegate_to: "{{ gateway_host }}" delegate_to: "{{ gateway_host }}"
- name: reload nginx - name: Reload nginx
ansible.builtin.service: ansible.builtin.service:
name: nginx name: nginx
state: reloaded state: reloaded

View file

@ -24,10 +24,11 @@
owner: root owner: root
group: root group: root
mode: "0644" mode: "0644"
notify: Reload nginx
- name: "Gateway | Aktiviere Seite | {{ item.name }}" - name: "Gateway | Aktiviere Seite | {{ item.name }}"
ansible.builtin.file: ansible.builtin.file:
src: "/etc/nginx/sites-available/{{ item.name }}" src: "/etc/nginx/sites-available/{{ item.name }}"
dest: "/etc/nginx/sites-enabled/{{ item.name }}" dest: "/etc/nginx/sites-enabled/{{ item.name }}"
state: link state: link
notify: reload nginx notify: Reload nginx

View file

@ -41,7 +41,6 @@
- name: "Konfiguriere Nginx" - name: "Konfiguriere Nginx"
when: nextcloud_webserver == "Nginx" when: nextcloud_webserver == "Nginx"
tags: nginx tags: nginx
loop: "{{ nextcloud_instances }}"
notify: Reload nginx notify: Reload nginx
block: block:
- name: "Webserver | Kopiere Nginx-Konfiguration" - name: "Webserver | Kopiere Nginx-Konfiguration"
@ -49,9 +48,11 @@
src: nginx/nginx.conf src: nginx/nginx.conf
dest: "/etc/nginx/sites-available/{{ item.name }}" dest: "/etc/nginx/sites-available/{{ item.name }}"
mode: "0644" mode: "0644"
loop: "{{ nextcloud_instances }}"
- name: "Webserver | Aktiviere Nginx-Konfiguration" - name: "Webserver | Aktiviere Nginx-Konfiguration"
ansible.builtin.file: ansible.builtin.file:
src: "/etc/nginx/sites-available/{{ item.name }}" src: "/etc/nginx/sites-available/{{ item.name }}"
dest: "/etc/nginx/sites-enabled/{{ item.name }}" dest: "/etc/nginx/sites-enabled/{{ item.name }}"
state: link state: link
loop: "{{ nextcloud_instances }}"