summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tasks/webmap.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tasks/webmap.yml b/tasks/webmap.yml
index 9e2c2f6..c51f0a9 100644
--- a/tasks/webmap.yml
+++ b/tasks/webmap.yml
@@ -306,6 +306,7 @@
service: name=webmap-import@{{ item }}.service enabled=true
with_items: "{{ webmap_layer_groups }}"
+
- name: Build administrative-codes.json*
become: false
local_action:
@@ -313,6 +314,21 @@
chdir: ./webmap-tools/administrative-codes
target: all
+- name: Create directory /var/www/webmap/data
+ file: path=/var/www/webmap/data
+ state=directory
+ owner=root group=root
+ mode=0755
+
+- name: Copy /var/www/webmap/data/administrative-codes.json*
+ copy: src=./webmap-tools/administrative-codes/{{ item }}
+ dest=/var/www/webmap/data/{{ item }}
+ owner=root group=root
+ mode=0644
+ with_items:
+ - administrative-codes.json
+ - administrative-codes.json.br
+
- meta: flush_handlers