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

remove any possible file before creating regions symlink

This commit is contained in:
Tim Moody 2020-04-10 13:53:40 -04:00
parent c0f79ec75d
commit c3fde8d903

View file

@ -11,6 +11,12 @@
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
# handle case where a dummy file is already here and would break the symlink step that follows
- name: Remove {{ doc_root }}/common/assets/regions.json
file:
dest: "{{ doc_root }}/common/assets/regions.json" # /library/www/html
state: absent
- 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