summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_vpn/tasks/main.yml
blob: 3ca9dcce4039bd184b3600cc6bd32e92dc42b66f (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 wgmyk
  template:
      src: wg.conf.j2
      dest: /etc/wireguard/wgmyk.conf
      mode: 0400

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

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

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