From 0e67f5ed9b5e6226975c500fa5b16634235a930e Mon Sep 17 00:00:00 2001 From: Tim Moody Date: Sun, 19 Apr 2020 13:26:06 -0400 Subject: [PATCH] centralize map catalog for use by osm and admin console --- roles/osm-vector-maps/tasks/install.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/roles/osm-vector-maps/tasks/install.yml b/roles/osm-vector-maps/tasks/install.yml index 8b660ae92..d50c414d4 100644 --- a/roles/osm-vector-maps/tasks/install.yml +++ b/roles/osm-vector-maps/tasks/install.yml @@ -6,21 +6,15 @@ group: "{{ apache_user }}" mode: '0755' -- name: Download map catalog {{ iiab_map_url }}/assets/regions.json to {{ vector_map_path }}/maplist/assets/ +- name: Download map catalog {{ iiab_map_url }}/assets/regions.json to {{ iiab_etc_path }} get_url: 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 + dest: "{{ iiab_etc_path }}" -# 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 +- name: Symlink map catalog {{ vector_map_path }}/maplist/assets/regions.json -> {{ iiab_etc_path }} 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 - dest: "{{ doc_root }}/common/assets/regions.json" # /library/www/html + src: "{{ iiab_etc_path }}/regions.json" + dest: "{{ vector_map_path }}/maplist/assets/regions.json" state: link - name: Download the JavaScript bundle with OpenLayers (main.js) into {{ vector_map_path }}/maplist/, for test page http://box/maps/maplist