diff options
author | binary <me@rgoncalves.se> | 2021-03-17 20:53:31 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-03-17 20:53:31 +0100 |
commit | edfeb6401af135348ddd38518a27be3e8ec51f6a (patch) | |
tree | a179029da1de48d7a8edf7e4a4c7902324f9e751 /roles/wireguard/tasks/synchronize.yml | |
parent | 3e8b7f77311d32fd11e05d6f11d454aa40ed0aec (diff) | |
download | infrastructure-edfeb6401af135348ddd38518a27be3e8ec51f6a.tar.gz |
Make wireguard unreachables/failures free
Diffstat (limited to 'roles/wireguard/tasks/synchronize.yml')
-rw-r--r-- | roles/wireguard/tasks/synchronize.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/synchronize.yml b/roles/wireguard/tasks/synchronize.yml new file mode 100644 index 0000000..0e7574a --- /dev/null +++ b/roles/wireguard/tasks/synchronize.yml @@ -0,0 +1,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" |