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:
parent
c0f79ec75d
commit
c3fde8d903
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue