aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/synchronize.yml
blob: 0e7574a3072328eb86d6f86fbd14d7fe527e874c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# wireguard ~~ roles/wireguard/tasks/main.yml
# create keys and configuration for wireguard hosts

---

- name: ensure wireguard directory exists on remote
  file:
    path: /etc/wireguard
    owner: "0"
    group: "0"
    mode: "0700"
    state: directory

- name: ensure wiregard configuration is copied on remote
  copy:
    src: "{{ wg_host_conf }}"
    dest: "/etc/wireguard/{{ global.dcontroller }}.conf"
    owner: "0"
    group: "0"
    mode: "0600"
remember that computers suck.