mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
centralize map catalog for use by osm and admin console
This commit is contained in:
parent
2a63ca5bd6
commit
0e67f5ed9b
1 changed files with 5 additions and 11 deletions
|
@ -6,21 +6,15 @@
|
||||||
group: "{{ apache_user }}"
|
group: "{{ apache_user }}"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Download map catalog {{ iiab_map_url }}/assets/regions.json to {{ vector_map_path }}/maplist/assets/
|
- name: Download map catalog {{ iiab_map_url }}/assets/regions.json to {{ iiab_etc_path }}
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ iiab_map_url }}/assets/regions.json" # http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
|
url: "{{ iiab_map_url }}/assets/regions.json" # http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
|
||||||
dest: "{{ vector_map_path }}/maplist/assets/" # /library/www/osm-vector-maps
|
dest: "{{ iiab_etc_path }}"
|
||||||
|
|
||||||
# handle case where a dummy file is already here and would break the symlink step that follows
|
- name: Symlink map catalog {{ vector_map_path }}/maplist/assets/regions.json -> {{ iiab_etc_path }}
|
||||||
- name: Remove {{ doc_root }}/common/assets/regions.json
|
|
||||||
file:
|
file:
|
||||||
dest: "{{ doc_root }}/common/assets/regions.json" # /library/www/html
|
src: "{{ iiab_etc_path }}/regions.json"
|
||||||
state: absent
|
dest: "{{ vector_map_path }}/maplist/assets/regions.json"
|
||||||
|
|
||||||
- name: Symlink catalog {{ doc_root }}/common/assets/regions.json -> {{ vector_map_path }}/maplist/assets/regions.json
|
|
||||||
file:
|
|
||||||
src: "{{ vector_map_path }}/maplist/assets/regions.json" # /library/www/osm-vector-maps
|
|
||||||
dest: "{{ doc_root }}/common/assets/regions.json" # /library/www/html
|
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Download the JavaScript bundle with OpenLayers (main.js) into {{ vector_map_path }}/maplist/, for test page http://box/maps/maplist
|
- name: Download the JavaScript bundle with OpenLayers (main.js) into {{ vector_map_path }}/maplist/, for test page http://box/maps/maplist
|
||||||
|
|
Loading…
Reference in a new issue