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

Merge pull request #2334 from tim-moody/osm-fix

remove any possible file before creating regions symlink
This commit is contained in:
A Holt 2020-04-10 21:03:59 -04:00 committed by GitHub
commit a33d4b6ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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