summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_backbone/tasks/main.yml
blob: d0b725da5529a6f323010706b929ce2a8690dc9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- name: create wireguard config for sites
  template:
      src: wg.conf.j2
      dest: /etc/wireguard/wgbackbone.conf
      mode: 0400

- name: create wireguard up scripts for sites
  template:
      src: up.sh.j2
      dest: /etc/wireguard/upbackbone.sh
      mode: 0744

- name: create wireguard down scripts for sites
  template:
      src: down.sh.j2
      dest: /etc/wireguard/downbackbone.sh
      mode: 0744

- name: start and enable wireguard mesh
  systemd:
      name: wg-quick@wgbackbone.service
      enabled: yes
      state: started