Maintenance Vhost #35
2 changed files with 10 additions and 1 deletions
|
@ -44,3 +44,12 @@
|
|||
notify:
|
||||
- reload nginx
|
||||
when: nginx_default_vhost is not none
|
||||
|
||||
- name: "[NGINX] - Create maintenance vhosts"
|
||||
template:
|
||||
src: etc/nginx/sites-available/maintenance.j2
|
||||
dest: "{{ nginx_etc_dir }}/sites-available/maintenance-{{ item.name }}"
|
||||
with_items: "{{ nginx_vhosts }}"
|
||||
notify:
|
||||
- reload nginx
|
||||
when: (item.state is defined) and (item.state != 'delete') and (item.maintenance is defined) and (item.maintenance == 'true')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "core.j2" %}
|
||||
|
||||
{%location root %}
|
||||
{% block root %}
|
||||
root {{ nginx_maintenance_page_root }};
|
||||
index index.html;
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue