Skip to content
Snippets Groups Projects
Verified Commit 9b72f909 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Add the service_nginx_template variable and fix when the maintenance mode should run

Configured the variable for the custom nginx template used on maintenance mode. It is important that this template handles the maintenance
on it's own. Also, the maintenance mode was running on gemini, even though archweb_site is false there. Add a check for archweb_site, to make
sure the maintenance mode only runs on the machine hosting the site.
parent 01bfd0d4
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@
service_domain: "{{ archweb_domain }}"
service_alternate_domains: "{{ archweb_alternate_domains }}"
service_nginx_conf: "{{ archweb_nginx_conf }}"
when: maintenance is defined
service_nginx_template: "maintenance-nginx.d.conf.j2"
when: maintenance is defined and archweb_site
- name: install required packages
pacman: name=git,python-setuptools,python-psycopg2,llvm-libs,uwsgi-plugin-python state=present
......
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