1
0
Fork 0
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:
root 2022-07-22 15:59:10 -04:00
parent dbeaf02482
commit 9f5032d74f

View file

@ -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: