hopglass-frontend: add nginx dependency, update attribution URLs
This commit is contained in:
parent
559562cdf2
commit
8766f7b48c
3
roles/hopglass-frontend/meta/main.yml
Normal file
3
roles/hopglass-frontend/meta/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
- role: nginx
|
|
@ -19,14 +19,15 @@
|
||||||
- name: template nginx site
|
- name: template nginx site
|
||||||
template:
|
template:
|
||||||
src: nginx-site.j2
|
src: nginx-site.j2
|
||||||
dest: /etc/nginx/conf.d/hopglass.conf
|
dest: /etc/nginx/sites-available/hopglass
|
||||||
register: nginx
|
notify: reload nginx
|
||||||
|
|
||||||
- name: reload nginx
|
- name: enable site
|
||||||
service:
|
file:
|
||||||
name: nginx
|
src: ../sites-available/hopglass
|
||||||
state: reloaded
|
dest: /etc/nginx/sites-enabled/hopglass
|
||||||
when: nginx.changed
|
state: link
|
||||||
|
notify: reload nginx
|
||||||
|
|
||||||
- name: template make-hopglass-frontend
|
- name: template make-hopglass-frontend
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
"url": "https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",
|
"url": "https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",
|
||||||
"config": {
|
"config": {
|
||||||
"maxZoom": 20,
|
"maxZoom": 20,
|
||||||
"attribution": "Map tiles by <a href=\"http://stamen.com\">Stamen Design</a>, <a href=\"http://creativecommons.org/licenses/by/3.0\">CC BY 3.0</a> — Map data © <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"
|
"attribution": "Map tiles by <a href=\"https://stamen.com\">Stamen Design</a>, <a href=\"https://creativecommons.org/licenses/by/3.0\">CC BY 3.0</a> — Map data © <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue