mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-29 10:29:31 +01:00
18 lines
319 B
YAML
18 lines
319 B
YAML
---
|
|
- 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
|