From 9735af7d160af6bacf0e2b28503056d6628015cb Mon Sep 17 00:00:00 2001 From: Miguel Angel Medinilla Luque Date: Thu, 14 Mar 2019 21:58:12 +0100 Subject: [PATCH] pipeline-websrv: Fix remove default nginx site This commit changes the task "Remove Nginx default server", deleting the enabled default site instead of the available one. When deploying AM pipeline only, the nginx fails to start because exists the enabled directory default file but not the available directory one. When deploying pipelines and ss this issue does not happen because the enabled default file was deleted by the ss-websrv "Remove Nginx default server" task. --- tasks/pipeline-websrv-gunicorn.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/pipeline-websrv-gunicorn.yml b/tasks/pipeline-websrv-gunicorn.yml index 955fe754..e48346d3 100644 --- a/tasks/pipeline-websrv-gunicorn.yml +++ b/tasks/pipeline-websrv-gunicorn.yml @@ -55,8 +55,8 @@ path: "{{ item }}" state: "absent" with_items: - - "/etc/nginx/sites-available/default" - - "/etc/nginx/sites-available/default.conf" + - "/etc/nginx/sites-enabled/default" + - "/etc/nginx/sites-enabled/default.conf" - name: "Set up Nginx server" file: