systemd-networkd/tasks/deploy_configs.yml

35 lines
1017 B
YAML
Raw Normal View History

2020-05-05 19:19:38 +03:00
---
- 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
2020-06-04 00:41:22 +03:00
notify: networkd | Do {{ networkd_apply_action }}
2020-05-05 19:19:38 +03:00
- 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
2020-06-04 00:41:22 +03:00
notify: networkd | Do {{ networkd_apply_action }}
2020-05-05 19:19:38 +03:00
- 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
2020-06-04 00:41:22 +03:00
notify: networkd | Do {{ networkd_apply_action }}