8b25b3397f
I am no longer doing the bonded device because it was more trouble than it was worth.
41 lines
815 B
YAML
41 lines
815 B
YAML
- name: Install packages
|
|
package:
|
|
name:
|
|
- iwd
|
|
state: present
|
|
|
|
- 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 }}"
|
|
mode: 0600
|
|
owner: root
|
|
group: wheel
|
|
loop:
|
|
- src: mullvlad_dns_over_tls.conf
|
|
dest: /etc/systemd/resolved.conf.d/mullvlad_dns_over_tls.conf
|
|
- 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
|
|
- systemd-networkd.service
|
|
- systemd-resolved.service
|