1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Lint & explain osm-vector-maps/tasks/install.yml

This commit is contained in:
root 2021-09-08 19:03:39 -04:00
parent a1ec9e574b
commit c0d63a0a7e

View file

@ -83,7 +83,7 @@
url: "{{ map_catalog_url }}/planet_z0-z6_2019.mbtiles"
dest: "{{ vector_map_path }}/installer/"
- name: Symlink {{ vector_map_path }}/installer/detail.mbtiles -> {{ vector_map_path }}/installer/planet_z0-z6_2019.mbtiles
- name: Symlink ~34MB {{ vector_map_path }}/installer/detail.mbtiles -> {{ vector_map_path }}/installer/planet_z0-z6_2019.mbtiles
file:
src: "{{ vector_map_path }}/installer/planet_z0-z6_2019.mbtiles"
path: "{{ vector_map_path }}/installer/detail.mbtiles"
@ -119,10 +119,10 @@
- tileserver.php
# the following was changed to grab from the iiab/maps repo
- name: Download common assets from {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/assets/* to {{ vector_map_path }}/viewer/assets -- for the general purpose map viewer
- name: Download common assets from {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/assets/* to {{ vector_map_path }}/viewer/assets/ -- for the general purpose map viewer
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/assets/{{ item }}"
dest: "{{ vector_map_path }}/viewer/assets"
dest: "{{ vector_map_path }}/viewer/assets/"
with_items:
- bboxes.geojson
- center.png
@ -140,19 +140,19 @@
- style-sat.json
- view_list.png
- name: Symlink {{ vector_map_path }}/maplist/assets/bboxes.geojson -> {{ vector_map_path }}/viewer/assets/bboxes.geojson for Admin Console
- name: Force Symlink {{ vector_map_path }}/maplist/assets/bboxes.geojson -> {{ vector_map_path }}/viewer/assets/bboxes.geojson for Admin Console
file:
src: "{{ vector_map_path }}/viewer/assets/bboxes.geojson"
path: "{{ vector_map_path }}/maplist/assets/bboxes.geojson"
state: link
force: True
force: yes
- name: Symlink {{ vector_map_path }}/maplist/assets/countries.json -> {{ vector_map_path }}/viewer/assets/countries.json for Admin Console
- name: Force Symlink {{ vector_map_path }}/maplist/assets/countries.json -> {{ vector_map_path }}/viewer/assets/countries.json for Admin Console
file:
src: "{{ vector_map_path }}/viewer/assets/countries.json"
path: "{{ vector_map_path }}/maplist/assets/countries.json"
state: link
force: True
force: yes
- name: Copy fonts to {{ doc_root }}/common/fonts/ for the general purpose map viewer (root:root, 0644 by default)
copy:
@ -164,7 +164,7 @@
with_fileglob:
- fonts/*
- name: Copy redirect {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/installer-index.redirect to test page {{ vector_map_path }}/maplist/index.html
- name: Force Download redirect {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/installer-index.redirect to test page {{ vector_map_path }}/maplist/index.html
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/installer-index.redirect"
dest: "{{ vector_map_path }}/maplist/index.html"