35 lines
987 B
YAML
35 lines
987 B
YAML
|
---
|
||
|
|
||
|
- name: networkd | Deploy .link configs
|
||
|
template:
|
||
|
src: networkd.j2
|
||
|
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.link"
|
||
|
mode: 644
|
||
|
owner: root
|
||
|
group: root
|
||
|
with_items: "{{ networkd.link | default([]) }}"
|
||
|
register: networkd_deployed_link
|
||
|
notify: networkd | Reload configuration
|
||
|
|
||
|
- name: networkd | Deploy .netdev configs
|
||
|
template:
|
||
|
src: networkd.j2
|
||
|
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.netdev"
|
||
|
mode: 644
|
||
|
owner: root
|
||
|
group: root
|
||
|
with_items: "{{ networkd.netdev | default([]) }}"
|
||
|
register: networkd_deployed_netdev
|
||
|
notify: networkd | Reload configuration
|
||
|
|
||
|
- name: networkd | Deploy .network configs
|
||
|
template:
|
||
|
src: networkd.j2
|
||
|
dest: "/etc/systemd/network/{{ item.priority }}-{{ item.name }}.network"
|
||
|
mode: 644
|
||
|
owner: root
|
||
|
group: root
|
||
|
with_items: "{{ networkd.network | default([]) }}"
|
||
|
register: networkd_deployed_network
|
||
|
notify: networkd | Reload configuration
|