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

roles/archweb: Add in the maintenance role.

parent 5e15fe77
No related branches found
No related tags found
No related merge requests found
---
- name: run maintenance mode
include_role:
name: maintenance
vars:
service_name: "site"
service_domain: "{{ archweb_domain }}"
service_alternate_domains: "{{ archweb_alternate_domains }}"
service_nginx_conf: "/etc/nginx/nginx.d/archweb.conf"
when: maintenance is defined
- name: install required packages
pacman: name=git,python-setuptools,python-psycopg2,uwsgi-plugin-python,gcc state=present
......@@ -15,7 +25,7 @@
- name: set up nginx
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/archweb.conf owner=root group=root mode=644
notify: reload nginx
when: archweb_site|bool
when: archweb_site|bool and maintenance is not defined
tags: ['nginx']
- name: make nginx log dir
......
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