Verified Commit 43c8008e authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/archweb: Turn the nginx configuration path into a variable

parent 4d9e37f8
......@@ -6,6 +6,7 @@ archweb_domains_redirects:
'master-key.archlinux.org': '/master-keys'
'dev.archlinux.org': '/'
'packages.archlinux.org': '/packages$request_uri'
archweb_nginx_conf: '/etc/nginx/nginx.d/archweb.conf'
archweb_repository: 'https://github.com/archlinux/archweb.git'
archweb_version: release_2019-09-11
archweb_site: true
......
......@@ -6,7 +6,7 @@
service_name: "site"
service_domain: "{{ archweb_domain }}"
service_alternate_domains: "{{ archweb_alternate_domains }}"
service_nginx_conf: "/etc/nginx/nginx.d/archweb.conf"
service_nginx_conf: "{{ archweb_nginx_conf }}"
when: maintenance is defined
- name: install required packages
......@@ -23,7 +23,7 @@
when: archweb_site|bool
- name: set up nginx
template: src=nginx.d.conf.j2 dest=/etc/nginx/nginx.d/archweb.conf owner=root group=root mode=644
template: src=nginx.d.conf.j2 dest="{{ archweb_nginx_conf }}" owner=root group=root mode=644
notify: reload nginx
when: archweb_site|bool and maintenance is not defined
tags: ['nginx']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment