mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Restart iiab-clone-wifi if the ap0 device is not detected by ansible #3379
This commit is contained in:
		
							parent
							
								
									6b69696f72
								
							
						
					
					
						commit
						d349f2fe2f
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -64,8 +64,8 @@
 | 
			
		|||
- name: Clone wifi if needed
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: iiab-clone-wifi
 | 
			
		||||
    state: started
 | 
			
		||||
  when: wifi_up_down and can_be_ap
 | 
			
		||||
    state: restarted
 | 
			
		||||
  when: wifi_up_down and can_be_ap and ansible_ap0 is undefined
 | 
			
		||||
 | 
			
		||||
- name: Restart the networking service if appropriate
 | 
			
		||||
  systemd:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,8 +54,8 @@
 | 
			
		|||
- name: Clone wifi if needed
 | 
			
		||||
  systemd:
 | 
			
		||||
    name: iiab-clone-wifi
 | 
			
		||||
    state: started
 | 
			
		||||
  when: wifi_up_down and can_be_ap
 | 
			
		||||
    state: restarted
 | 
			
		||||
  when: wifi_up_down and can_be_ap and ansible_ap0 is undefined
 | 
			
		||||
 | 
			
		||||
- name: Enable & Restart systemd-networkd.service
 | 
			
		||||
  systemd:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue