Add p14 configuration
This commit is contained in:
parent
be2ed3c9bf
commit
5fe1764dbe
32 changed files with 332 additions and 14 deletions
|
|
@ -26,4 +26,4 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
notify: restart nftables
|
||||
notify: Restart nftables
|
||||
|
|
|
|||
31
tasks/network/p14.yml
Normal file
31
tasks/network/p14.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- name: Setup network configuration
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: systemd-network
|
||||
mode: "0640"
|
||||
loop:
|
||||
- src: "templates/p14/network/wlan0.network.j2"
|
||||
dest: "/etc/systemd/network/20-wireless.network"
|
||||
notify:
|
||||
- Restart systemd-networkd
|
||||
- Restart systemd-resolved
|
||||
|
||||
- name: Create iwd directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/iwd
|
||||
mode: "0644"
|
||||
owner: root
|
||||
|
||||
- name: Provision iwd configuration
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: templates/p14/iwd.j2
|
||||
dest: /etc/iwd/main.config
|
||||
mode: "0755"
|
||||
owner: root
|
||||
notify: Restart iwd
|
||||
Loading…
Add table
Add a link
Reference in a new issue