2023-01-16 20:28:18 +00:00
|
|
|
- name: Install packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- iwd
|
|
|
|
state: present
|
|
|
|
|
2022-12-15 03:36:12 +00:00
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
|
|
|
- /etc/systemd/resolved.conf.d
|
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
2023-03-25 13:33:07 +00:00
|
|
|
mode: 0644
|
2022-12-15 03:36:12 +00:00
|
|
|
owner: root
|
|
|
|
group: wheel
|
|
|
|
loop:
|
2023-03-25 13:57:16 +00:00
|
|
|
- src: mullvad_dns_over_tls.conf
|
|
|
|
dest: /etc/systemd/resolved.conf.d/mullvad_dns_over_tls.conf
|
2023-01-16 20:28:18 +00:00
|
|
|
- src: main.conf
|
|
|
|
dest: /etc/iwd/main.conf
|
|
|
|
- src: 10-wired.network
|
|
|
|
dest: /etc/systemd/network/10-wired.network
|
|
|
|
|
|
|
|
- name: Enable services
|
|
|
|
systemd:
|
|
|
|
enabled: yes
|
|
|
|
name: "{{ item }}"
|
|
|
|
daemon_reload: yes
|
|
|
|
loop:
|
|
|
|
- iwd.service
|
2023-12-28 17:50:05 +00:00
|
|
|
# - systemd-networkd.service
|
2023-01-16 20:28:18 +00:00
|
|
|
- systemd-resolved.service
|