initial deployment
This commit is contained in:
17
ansible/provisoning/ubuntu/install-wireguard.yaml
Normal file
17
ansible/provisoning/ubuntu/install-wireguard.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user