30 lines
708 B
YAML
30 lines
708 B
YAML
---
|
|
- name: Configure interfaces links
|
|
template:
|
|
src: link.j2
|
|
dest: "/etc/systemd/network/10-{{ item.key }}.link"
|
|
owner: root
|
|
group: systemd-network
|
|
mode: u=rw,g=r,o=
|
|
loop: "{{ networkd_interfaces | dict2items }}"
|
|
notify:
|
|
- Update initramfs
|
|
- Reboot required
|
|
|
|
- name: Configure interfaces networks
|
|
template:
|
|
src: network.j2
|
|
dest: "/etc/systemd/network/10-{{ item.key }}.network"
|
|
owner: root
|
|
group: systemd-network
|
|
mode: u=rw,g=r,o=
|
|
loop: "{{ networkd_interfaces | dict2items }}"
|
|
notify:
|
|
- Restart systemd-networkd
|
|
|
|
- name: Enable and start systemd-networkd
|
|
systemd:
|
|
name: systemd-networkd.service
|
|
enabled: true
|
|
state: started
|
|
...
|