initial cleanup server-manager

This commit is contained in:
2020-12-24 14:27:31 +01:00
commit ccd20af081
81 changed files with 2601 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Role Native Wireguard
Manages wireguard natively on host. More information are available in the [Arch wiki](https://wiki.archlinux.org/index.php/WireGuard#Manual_WireGuard_setup).
## Create Client Key
``bash
wg genkey | tee peer_A.key | wg pubkey > peer_A.pub
``
# chown root:systemd-network /etc/systemd/network/99-*.netdev
# chmod 0640 /etc/systemd/network/99-*.netdev

View File

@@ -0,0 +1,2 @@
- name: restart wireguard
service: name=wg-quick@wg0.service state=restarted enabled=yes

View File

@@ -0,0 +1,6 @@
- name: install wireguard
pacman: name=wireguard-tools state=present
- name: create /etc/wireguard/wg0.conf
template: src={{ inventory_hostname }}.wg0.conf dest=/etc/wireguard/wg0.conf
notify: restart wireguard