mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update main.yml
This commit is contained in:
		
							parent
							
								
									3c672b3e8e
								
							
						
					
					
						commit
						04f60db1b3
					
				
					 1 changed files with 18 additions and 3 deletions
				
			
		| 
						 | 
					@ -124,8 +124,23 @@
 | 
				
			||||||
    name: apache2
 | 
					    name: apache2
 | 
				
			||||||
    state: restarted
 | 
					    state: restarted
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Restart dnsmasq
 | 
					#- name: Restart dnsmasq
 | 
				
			||||||
 | 
					#  systemd:
 | 
				
			||||||
 | 
					#    name: dnsmasq
 | 
				
			||||||
 | 
					#    state: restarted
 | 
				
			||||||
 | 
					#  when: dnsmasq_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ABOVE DOES NOT WORK ON UBUNTU 16.04 -- what follows is a crude hack (seems to work!)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Stop dnsmasq
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: dnsmasq
 | 
					    name: dnsmasq
 | 
				
			||||||
    state: restarted
 | 
					    state: stopped
 | 
				
			||||||
  when: dnsmasq_enabled
 | 
					  when: dnsmasq_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Start dnsmasq
 | 
				
			||||||
 | 
					  systemd:
 | 
				
			||||||
 | 
					    name: dnsmasq
 | 
				
			||||||
 | 
					    state: started
 | 
				
			||||||
 | 
					  when: dnsmasq_enabled
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue