systemd-networkd/tasks/deploy_configs.yml

35 lines
1020 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"
2020-06-04 00:57:09 +03:00
mode: 0644
2020-05-05 19:19:38 +03:00
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"
2020-06-04 00:57:09 +03:00
mode: 0644
2020-05-05 19:19:38 +03:00
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"
2020-06-04 00:57:09 +03:00
mode: 0644
2020-05-05 19:19:38 +03:00
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 }}