mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
static ip systemd-networkd
This commit is contained in:
parent
5dd283f84e
commit
56ba4d0d19
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue