Skip to content

Commit

Permalink
static ip systemd-networkd
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed Apr 30, 2020
1 parent 1c1a8b8 commit eeab4b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/network/tasks/sysd-netd-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@
wan_cidr: "{{ CIDR.stdout }}"
when: wan_ip != "dhcp"

- name: Supply static WAN template (ubuntu-16)
- name: Supply static WAN template when network_manager_active is False
template:
dest: /etc/systemd/network/IIAB-Static.network
src: network/systemd-static-net.j2
when: wan_ip != "dhcp" and is_ubuntu_16
when: wan_ip != "dhcp" and ( is_ubuntu_16 or not network_manager_active )

#when: wan_ip != "dhcp" and not is_ubuntu_18

- name: Stopping services
Expand All @@ -54,6 +55,7 @@
systemd:
name: systemd-networkd
enabled: yes
masked: no
state: restarted
#when: (netplan.stdout is undefined or netplan.stdout.find("yaml") == -1) and not no_net_restart
when: not no_net_restart

0 comments on commit eeab4b0

Please sign in to comment.