1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #1678 from tim-moody/update-maps

various fixes
This commit is contained in:
Tim Moody 2019-05-19 12:54:52 -04:00 committed by GitHub
commit da41c9ed23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View file

@ -27,10 +27,10 @@
when: moodle_install
tags: olpc, moodle
- name: OSM_VECTOR
- name: OSM_VECTOR_MAPS
include_role:
name: osm-vector
when: osm_vector_install is defined and osm_vector_install
name: osm-vector-maps
when: osm_vector_maps_install
tags: osm
# UNMAINTAINED

View file

@ -1,5 +1,5 @@
- name: Make sure the osm-vector-maps directory exists
file:
file:
path: '{{ vector_map_path }}/maplist/assets'
state: directory
owner: '{{ apache_user }}'
@ -45,17 +45,18 @@
dest: /usr/bin/iiab-update-map
mode: "0755"
- name: Run the script that does osm-vector-maps housekeeping
shell: /usr/bin/iiab-update-map
# This depends on iiab-admin-console which is not yet installed
#- name: Run the script that does osm-vector-maps housekeeping
# shell: /usr/bin/iiab-update-map
- name: Copy the Countries geojson to assets
copy:
copy:
src: countries.json
dest: '{{ vector_map_path }}/maplist/assets'
# It is too complicated to use a single file for both iiab and admin-console
- name: Copy the duplicated javascript to assets
copy:
copy:
src: map_functions.js
dest: '{{ vector_map_path }}/maplist/assets'
@ -78,7 +79,7 @@
when: not osm_vector_maps_enabled and is_debuntu
- name: Copy the redirect to the test page -- delete this if more than one map
copy:
copy:
src: test-index.redirect
dest: "{{ vector_map_path }}/index.html"