Fix permissions on networkd files`
This commit is contained in:
parent
bef40c64c6
commit
6a825e1dd7
@ -5,26 +5,24 @@
|
|||||||
become: true
|
become: true
|
||||||
when: omni_networking is defined
|
when: omni_networking is defined
|
||||||
block:
|
block:
|
||||||
- name: Delete networkd config directory
|
|
||||||
file:
|
|
||||||
path: /etc/systemd/network
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
- name: Create the networkd config directory
|
- name: Create the networkd config directory
|
||||||
file:
|
file:
|
||||||
path: /etc/systemd/network
|
path: /etc/systemd/network
|
||||||
state: directory
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: Make network files
|
- name: Make network files
|
||||||
template:
|
template:
|
||||||
src: network.j2
|
src: network.j2
|
||||||
dest: "/etc/systemd/network/{{ item.key }}.network"
|
dest: "/etc/systemd/network/{{ item.key }}.network"
|
||||||
|
mode: 0644
|
||||||
loop: "{{ omni_networking | dict2items }}"
|
loop: "{{ omni_networking | dict2items }}"
|
||||||
|
|
||||||
- name: Make netdev files
|
- name: Make netdev files
|
||||||
template:
|
template:
|
||||||
src: netdev.j2
|
src: netdev.j2
|
||||||
dest: "/etc/systemd/network/{{ item.0.key + '.' + item.1 }}.netdev"
|
dest: "/etc/systemd/network/{{ item.0.key + '.' + item.1 }}.netdev"
|
||||||
|
mode: 0644
|
||||||
loop: "{{ omni_networking | dict2items | subelements('value.vlans', true) }}"
|
loop: "{{ omni_networking | dict2items | subelements('value.vlans', true) }}"
|
||||||
|
|
||||||
- import_tasks: services.yml
|
- import_tasks: services.yml
|
||||||
|
Reference in New Issue
Block a user