mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-29 03:33:28 +01:00
15 lines
348 B
YAML
15 lines
348 B
YAML
---
|
|
- name: install wireguard
|
|
hosts: "{{ hosts }}"
|
|
become: yes
|
|
tasks:
|
|
- name: install wireguard
|
|
apt:
|
|
name: wireguard
|
|
update_cache: yes
|
|
- name: generate private and public keypair
|
|
shell: |
|
|
wg genkey | tee privatekey | wg pubkey > publickey
|
|
chmod 0400 privatekey
|
|
chmod 0400 publickey
|