diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-09-26 02:43:33 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-09-26 03:01:26 +0200 |
commit | 4efc777339d669ed834e60d078cd6a3b6ce0ac0e (patch) | |
tree | 0652dd3588f4d5db0326b3b14e22a9104aa7d69e /tasks | |
parent | 8d1806166d6bc2f0e5356d4bd85b995ed27f4b6b (diff) |
webmap: Copy administrative-codes.json*.
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/webmap.yml | 16 |
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 |