Skip to content
Snippets Groups Projects
Commit 6ee4d8b4 authored by ynerant's avatar ynerant Committed by ynerant
Browse files

Deploy nginx configuration


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 6c8be263
No related branches found
No related tags found
1 merge request!165Nginx
......@@ -44,6 +44,22 @@
notify: Reload nginx
ignore_errors: "{{ ansible_check_mode }}"
- name: Copy service nginx configuration
when: nginx.servers|length > 0
template:
src: "nginx/sites-available/service.j2"
dest: "/etc/nginx/sites-available/service"
notify: Reload nginx
- name: Activate local nginx service site
when: nginx.servers|length > 0
file:
src: "/etc/nginx/sites-available/service"
dest: "/etc/nginx/sites-enabled/service"
state: link
notify: Reload nginx
ignore_errors: "{{ ansible_check_mode }}"
- name: Copy 50x error page
template:
src: www/html/50x.html.j2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment