From abd94f520cfc424e8a3cd8d6665039502a30b307 Mon Sep 17 00:00:00 2001 From: am Date: Wed, 31 Mar 2021 11:23:24 +0200 Subject: [PATCH] modifs main.yml --- roles/docker-nextcloud/tasks/main.yml | 46 +++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/roles/docker-nextcloud/tasks/main.yml b/roles/docker-nextcloud/tasks/main.yml index e010466..08c877b 100644 --- a/roles/docker-nextcloud/tasks/main.yml +++ b/roles/docker-nextcloud/tasks/main.yml @@ -35,29 +35,6 @@ name: nginx state: present -- name: Copie de /etc/nginx/site-availables/proxy - copy: - src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/proxy - dest: /etc/nginx/sites-available - -- name: Suppression de /etc/nginx/sites-enabled/default - file: - path: /etc/nginx/sites-enabled/default - state: absent - -- name: Creation de lien symbolique avec /etc/nginx/sites-available/proxy dans /etc/nginx/sites-enabled/proxy - file: - src: /etc/nginx/sites-available/proxy - dest: /etc/nginx/sites-enabled/proxy - owner: root - group: root - state: link - -- name: Redemarage de Nginx - service: - name: nginx - state: restarted - - name: Copie de config.php dans /root/nextcloud/nextcloud/config copy: src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/config.php @@ -87,3 +64,26 @@ copy: src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/ssl-params.conf dest: /etc/nginx/snippets + +- name: Copie de /etc/nginx/site-availables/proxy + copy: + src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/proxy + dest: /etc/nginx/sites-available + +- name: Suppression de /etc/nginx/sites-enabled/default + file: + path: /etc/nginx/sites-enabled/default + state: absent + +- name: Creation de lien symbolique avec /etc/nginx/sites-available/proxy dans /etc/n$ + file: + src: /etc/nginx/sites-available/proxy + dest: /etc/nginx/sites-enabled/proxy + owner: root + group: root + state: link + +- name: Redemarage de Nginx + service: + name: nginx + state: restarted