Fix ending up with no link on WAN interface.

This commit is contained in:
Andreas B. Mundt 2021-04-01 22:01:46 +02:00 committed by Andreas B. Mundt
parent 3059ba0cd6
commit c06aa6e519
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
- name: restart networking
systemd: name=networking state=restarted enabled=yes
listen: restart networking
command: ifup {{ if_lan }}
listen: "bring up LAN interface"
when: not run_in_installer|default(false)|bool
- name: start firewalld

View file

@ -2,7 +2,7 @@
template:
src: interfaces-static.j2
dest: /etc/network/interfaces.d/static
notify: "restart networking"
notify: "bring up LAN interface"
- name: install firewalld package
apt: name=firewalld state=latest