mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 08:13:18 +01:00
17 lines
395 B
YAML
17 lines
395 B
YAML
---
|
|
- 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
|