hopglass-frontend: add nginx dependency, update attribution URLs

This commit is contained in:
Alexander Dietrich 2018-11-10 00:19:54 +01:00
parent 559562cdf2
commit 8766f7b48c
3 changed files with 12 additions and 8 deletions

View file

@ -0,0 +1,3 @@
---
dependencies:
- role: nginx

View file

@ -19,14 +19,15 @@
- name: template nginx site
template:
src: nginx-site.j2
dest: /etc/nginx/conf.d/hopglass.conf
register: nginx
dest: /etc/nginx/sites-available/hopglass
notify: reload nginx
- name: reload nginx
service:
name: nginx
state: reloaded
when: nginx.changed
- name: enable site
file:
src: ../sites-available/hopglass
dest: /etc/nginx/sites-enabled/hopglass
state: link
notify: reload nginx
- name: template make-hopglass-frontend
template:

View file

@ -25,7 +25,7 @@
"url": "https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",
"config": {
"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> &mdash; Map data &copy; <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> &mdash; Map data &copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>"
}
}
],