1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #1835 from holta/box-maps-url-keeps-getting-wiped

Tighten up PR #1834 [OSM redirect for http://box/maps, on initial install only!]
This commit is contained in:
A Holt 2019-07-07 21:52:08 -04:00 committed by GitHub
commit 8ac595d9e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,14 +78,15 @@
state: absent
when: not osm_vector_maps_enabled and is_debuntu
- name: Does the {{ vector_map_path }}/index.html redirect already exist?
stat:
path: "{{ vector_map_path }}/index.html"
register: osm_redirect
#- 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
- name: Install {{ vector_map_path }}/index.html redirect for http://box/maps -> http://box/osm-vector-maps/maplist/ if no redirect exists
copy:
force: no
src: test-index.redirect
dest: "{{ vector_map_path }}/index.html"
when: not osm_redirect.stat.exists
#when: not osm_redirect.stat.exists