mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	start nginx for OSM always
This commit is contained in:
		
							parent
							
								
									6a3072671a
								
							
						
					
					
						commit
						e4055a9fc5
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -2,13 +2,14 @@
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    src: osm-vector-maps-nginx.conf.j2
 | 
					    src: osm-vector-maps-nginx.conf.j2
 | 
				
			||||||
    dest: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf"    # /etc/nginx/conf.d
 | 
					    dest: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf"    # /etc/nginx/conf.d
 | 
				
			||||||
  when: osm_vector_maps_enabled | bool
 | 
					  when: osm_vector_maps_install | bool
 | 
				
			||||||
 | 
					# Note that the above change from enabled->install is required by the OSM command line installer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Disable http://box/maps & http://box/osm-vector-maps via NGINX, by removing {{ nginx_conf_dir }}/osm-vector-maps-nginx.conf
 | 
					- name: Disable http://box/maps & http://box/osm-vector-maps via NGINX, by removing {{ nginx_conf_dir }}/osm-vector-maps-nginx.conf
 | 
				
			||||||
  file:
 | 
					  file:
 | 
				
			||||||
    path: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf"    # /etc/nginx/conf.d
 | 
					    path: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf"    # /etc/nginx/conf.d
 | 
				
			||||||
    state: absent
 | 
					    state: absent
 | 
				
			||||||
  when: not osm_vector_maps_enabled
 | 
					  when: not osm_vector_maps_install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Reload 'nginx' systemd service
 | 
					- name: Reload 'nginx' systemd service
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue