mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
don't forget about non-netplan networkd
netplan.stdout is undefined should handle debian netplan.stdout.find("yaml") == -1) should handle U-16.04 U-18+ uses netplan
This commit is contained in:
parent
3dd370e088
commit
6783038b29
1 changed files with 1 additions and 1 deletions
|
@ -55,4 +55,4 @@
|
|||
name: systemd-networkd
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: not no_net_restart and netplan.stdout.find("yaml") == -1
|
||||
when: (netplan.stdout is undefined or netplan.stdout.find("yaml") == -1) and not no_net_restart
|
||||
|
|
Loading…
Reference in a new issue