christianlempa-boilerplates/ansible/provisoning/ubuntu/install-wireguard.yaml

18 lines
319 B
YAML
Raw Normal View History

2021-06-11 15:01:45 +02:00
---
- hosts: all
become: yes
tasks:
- name: Install WireGuard
apt:
name: wireguard
update_cache: yes
- name: Generate Private and Public Key Pair
shell: |
wg genkey | tee privatekey | wg pubkey > publickey
chmod 0400 privatekey
chmod 0400 publickey