mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
need a menu-def for maps
This commit is contained in:
parent
acce561ec9
commit
4432cec1fa
3 changed files with 23 additions and 0 deletions
1
roles/osm-vector/defaults/main.yml
Normal file
1
roles/osm-vector/defaults/main.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
menu_def_dir: '{{ doc_root }}/js-menu/menu-files/menu-defs'
|
12
roles/osm-vector/files/en-map_test.json
Normal file
12
roles/osm-vector/files/en-map_test.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"lang": "en",
|
||||||
|
"intended_use": "map",
|
||||||
|
"automatically_generated": "true",
|
||||||
|
"title": "OpenStreetMap Test Page",
|
||||||
|
"extra_html": "",
|
||||||
|
"start_url": "assets",
|
||||||
|
"menu_item_name": "en-map_test.json",
|
||||||
|
"map_name": "en-map_test",
|
||||||
|
"logo_url": "osm.jpg",
|
||||||
|
"description": "<p>This page is installed by default during the initial installation of Internet In A Box>"
|
||||||
|
}
|
|
@ -69,3 +69,13 @@
|
||||||
src: splash-index.redirect
|
src: splash-index.redirect
|
||||||
dest: "{{ osm_vector_path }}/index.html"
|
dest: "{{ osm_vector_path }}/index.html"
|
||||||
|
|
||||||
|
- name: Determine status of splash menu def
|
||||||
|
stat:
|
||||||
|
path: '{{ menu_def_dir }}/en-map_test.json'
|
||||||
|
register: menu_def
|
||||||
|
|
||||||
|
- name: Do not overwrite if it already exists
|
||||||
|
copy:
|
||||||
|
src: en-map_test.json
|
||||||
|
dest: '{{ menu_def_dir }}/en-map_test.json'
|
||||||
|
when: menu_def.stat.exists is defined and not menu_def.stat.exists
|
||||||
|
|
Loading…
Reference in a new issue