summaryrefslogtreecommitdiff
path: root/roles/network/wireguard/p2p/tasks/main.yml
blob: 78cfaf4362f20c512bf8417c74ca5f2f5fe3bd1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: install wireguard interfaces (netdev)
  template:
    src: systemd.netdev.j2
    dest: "/etc/systemd/network/{{ wireguard_p2p_interface.name }}.netdev"
    mode: 0640
    group: systemd-network
  notify: restart systemd-networkd

- name: install wireguard interfaces (network)
  template:
    src: systemd.network.j2
    dest: "/etc/systemd/network/{{ wireguard_p2p_interface.name }}.network"
  notify: restart systemd-networkd

- name: enable systemd-networkd
  systemd:
    name: systemd-networkd
    enabled: yes
    state: started