From 9f5032d74fa3566f2becfe1f9e5a80e81332bc9b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Jul 2022 15:59:10 -0400 Subject: [PATCH] Comment out 'netplan apply' from restart.yml (trim netplan.yml later?) --- roles/network/tasks/restart.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/roles/network/tasks/restart.yml b/roles/network/tasks/restart.yml index e5a825dee..1576a2af3 100644 --- a/roles/network/tasks/restart.yml +++ b/roles/network/tasks/restart.yml @@ -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: