mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Don't clobber http://box/maps redirect if it exists!
This commit is contained in:
parent
d05669f628
commit
c51225cdba
1 changed files with 9 additions and 1 deletions
|
@ -78,7 +78,15 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: not osm_vector_maps_enabled and is_debuntu
|
when: not osm_vector_maps_enabled and is_debuntu
|
||||||
|
|
||||||
- name: Copy the redirect to the test page -- delete this later if more than one map
|
- name: Does the {{ vector_map_path }}/index.html redirect already exist?
|
||||||
|
stat:
|
||||||
|
path: "{{ vector_map_path }}/index.html"
|
||||||
|
register: osm_redirect
|
||||||
|
|
||||||
|
#Copy the redirect to the test page -- delete this later if more than one map
|
||||||
|
- name: Install redirect for http://box/maps -> http://box/osm-vector-maps/maplist/ if no redirect exists
|
||||||
copy:
|
copy:
|
||||||
src: test-index.redirect
|
src: test-index.redirect
|
||||||
dest: "{{ vector_map_path }}/index.html"
|
dest: "{{ vector_map_path }}/index.html"
|
||||||
|
when: osm-redirect.stat.exists
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue