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?!)
|
# 2022-07-22: Moved from detected_network.yml to netplan.yml AND restart.yml (REMOVE DUPLICATE CODE LATER?!)
|
||||||
- name: Figure out netplan file name
|
# - name: Figure out netplan file name
|
||||||
shell: ls /etc/netplan
|
# shell: ls /etc/netplan
|
||||||
register: netplan
|
# register: netplan
|
||||||
#ignore_errors: True # pre 17.10 doesn't use netplan
|
# #ignore_errors: True # pre 17.10 doesn't use netplan
|
||||||
when: is_ubuntu
|
# when: is_ubuntu
|
||||||
|
|
||||||
|
|
||||||
- name: Restart wpa_supplicant service
|
- name: Restart wpa_supplicant service
|
||||||
|
@ -33,9 +33,13 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
when: hostapd_enabled and (wifi_up_down or not no_net_restart)
|
when: hostapd_enabled and (wifi_up_down or not no_net_restart)
|
||||||
|
|
||||||
- name: Reload netplan for Wifi gateway on Ubuntu 18+
|
# 2022-07-22: @jvonau suggests commenting this out as: "we really don't touch
|
||||||
shell: netplan apply
|
# any of the config files... netplan.yml renames one file if it's a container
|
||||||
when: wifi_up_down and is_ubuntu and netplan.stdout.find("yaml") != -1
|
# 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
|
#- name: Start named service
|
||||||
# systemd:
|
# systemd:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue