From 4efc777339d669ed834e60d078cd6a3b6ce0ac0e Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 26 Sep 2024 02:43:33 +0200 Subject: webmap: Copy administrative-codes.json*. --- tasks/webmap.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tasks') 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 -- cgit v1.2.3