Skip to content

Commit

Permalink
pipeline-websrv: Fix remove default nginx site
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mamedin committed Mar 14, 2019
1 parent 01880b8 commit 9735af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/pipeline-websrv-gunicorn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9735af7

Please sign in to comment.