From c3fde8d9038d6e99ace7b2ad196e2abf479273e4 Mon Sep 17 00:00:00 2001 From: Tim Moody Date: Fri, 10 Apr 2020 13:53:40 -0400 Subject: [PATCH] remove any possible file before creating regions symlink --- roles/osm-vector-maps/tasks/install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/osm-vector-maps/tasks/install.yml b/roles/osm-vector-maps/tasks/install.yml index 849c42017..8b660ae92 100644 --- a/roles/osm-vector-maps/tasks/install.yml +++ b/roles/osm-vector-maps/tasks/install.yml @@ -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