Optimized wireguard for ubuntu

This commit is contained in:
2021-01-12 09:44:14 +01:00
parent a273f6752f
commit f9abd2d9be
4 changed files with 31 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
- name: install wireguard
- name: install wireguard for Arch
pacman: name=wireguard-tools state=present
when: ansible_os_family == "Arch"
- name: install wireguard for Ubuntu
apt: name=wireguard state=present
when: ansible_os_family == "Debian"
- name: create /etc/wireguard/wg0.conf
copy: