Deploy nginx configuration
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									6c8be2638c
								
							
						
					
					
						commit
						6ee4d8b44d
					
				| 
						 | 
					@ -44,6 +44,22 @@
 | 
				
			||||||
  notify: Reload nginx
 | 
					  notify: Reload nginx
 | 
				
			||||||
  ignore_errors: "{{ ansible_check_mode }}"
 | 
					  ignore_errors: "{{ ansible_check_mode }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Copy service nginx configuration
 | 
				
			||||||
 | 
					  when: nginx.servers|length > 0
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    src: "nginx/sites-available/service.j2"
 | 
				
			||||||
 | 
					    dest: "/etc/nginx/sites-available/service"
 | 
				
			||||||
 | 
					  notify: Reload nginx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Activate local nginx service site
 | 
				
			||||||
 | 
					  when: nginx.servers|length > 0
 | 
				
			||||||
 | 
					  file:
 | 
				
			||||||
 | 
					    src: "/etc/nginx/sites-available/service"
 | 
				
			||||||
 | 
					    dest: "/etc/nginx/sites-enabled/service"
 | 
				
			||||||
 | 
					    state: link
 | 
				
			||||||
 | 
					  notify: Reload nginx
 | 
				
			||||||
 | 
					  ignore_errors: "{{ ansible_check_mode }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Copy 50x error page
 | 
					- name: Copy 50x error page
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    src: www/html/50x.html.j2
 | 
					    src: www/html/50x.html.j2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue