This commit is contained in:
Mike McFetridge
2026-07-20 09:23:17 -04:00
parent c1315882da
commit 72272e4006
3179 changed files with 562960 additions and 14 deletions
@@ -0,0 +1,16 @@
---
- name: Install wireguard
hosts: "{{ my_hosts | d([]) }}"
become: true
tasks:
- name: Install wireguard
ansible.builtin.apt:
name: wireguard
update_cache: true
- name: Generate private and public keypair
ansible.builtin.shell: |
wg genkey | tee privatekey | wg pubkey > publickey
chmod 0400 privatekey
chmod 0400 publickey