ansible-hessnet/roles/wireguard/tasks/wireguard-keys.yml

12 lines
265 B
YAML
Raw Normal View History

2020-04-23 20:23:19 +00:00
---
- name: "Copy wireguard public key"
copy:
content: "{{ wireguard.publickey }}"
dest: "/etc/wireguard/pub.key"
- name: "Copy wireguard private key"
copy:
content: "{{ wireguard.privatekey }}"
dest: "/etc/wireguard/priv.key"
mode: "0600"