1
0
Fork 0
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:
Jerry Vonau 2020-04-04 21:40:38 -05:00
parent 3dd370e088
commit 6783038b29

View file

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