mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Tighten up PR #1834
This commit is contained in:
		
							parent
							
								
									75ea18803b
								
							
						
					
					
						commit
						5f75c3409f
					
				
					 1 changed files with 7 additions and 6 deletions
				
			
		| 
						 | 
					@ -78,14 +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: Does the {{ vector_map_path }}/index.html redirect already exist?
 | 
					#- name: Does the {{ vector_map_path }}/index.html redirect already exist?
 | 
				
			||||||
  stat:
 | 
					#  stat:
 | 
				
			||||||
    path: "{{ vector_map_path }}/index.html"
 | 
					#    path: "{{ vector_map_path }}/index.html"
 | 
				
			||||||
  register: osm_redirect
 | 
					#  register: osm_redirect
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Copy the redirect to the test page -- delete this later if more than one map
 | 
					#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:
 | 
					  copy:
 | 
				
			||||||
 | 
					    force: no
 | 
				
			||||||
    src: test-index.redirect
 | 
					    src: test-index.redirect
 | 
				
			||||||
    dest: "{{ vector_map_path }}/index.html"
 | 
					    dest: "{{ vector_map_path }}/index.html"
 | 
				
			||||||
  when: not osm_redirect.stat.exists
 | 
					  #when: not osm_redirect.stat.exists
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue