mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Comment out 'netplan apply' from restart.yml (trim netplan.yml later?)
This commit is contained in:
		
							parent
							
								
									dbeaf02482
								
							
						
					
					
						commit
						9f5032d74f
					
				
					 1 changed files with 12 additions and 8 deletions
				
			
		|  | @ -1,9 +1,9 @@ | |||
| # 2022-07-22: Moved from detected_network.yml to netplan.yml AND restart.yml (REMOVE DUPLICATE CODE LATER?!) | ||||
| - name: Figure out netplan file name | ||||
|   shell: ls /etc/netplan | ||||
|   register: netplan | ||||
|   #ignore_errors: True # pre 17.10 doesn't use netplan | ||||
|   when: is_ubuntu | ||||
| # - name: Figure out netplan file name | ||||
| #   shell: ls /etc/netplan | ||||
| #   register: netplan | ||||
| #   #ignore_errors: True # pre 17.10 doesn't use netplan | ||||
| #   when: is_ubuntu | ||||
| 
 | ||||
| 
 | ||||
| - name: Restart wpa_supplicant service | ||||
|  | @ -33,9 +33,13 @@ | |||
|     daemon_reload: yes | ||||
|   when: hostapd_enabled and (wifi_up_down or not no_net_restart) | ||||
| 
 | ||||
| - name: Reload netplan for Wifi gateway on Ubuntu 18+ | ||||
|   shell: netplan apply | ||||
|   when: wifi_up_down and is_ubuntu and netplan.stdout.find("yaml") != -1 | ||||
| # 2022-07-22: @jvonau suggests commenting this out as: "we really don't touch | ||||
| # any of the config files... netplan.yml renames one file if it's a container | ||||
| # build like on MATE, could possibly skip netplan.yml in future or toss that in | ||||
| # the mix now and see what shakes up" [ok, but keep netplan.yml as is for now] | ||||
| # - name: Reload netplan for Wifi gateway on Ubuntu 18+ | ||||
| #   shell: netplan apply | ||||
| #   when: wifi_up_down and is_ubuntu and netplan.stdout.find("yaml") != -1 | ||||
| 
 | ||||
| #- name: Start named service | ||||
| #  systemd: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue