diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2022-01-22 19:59:11 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2022-01-22 19:59:11 +0100 |
commit | fb0dbf28a0e7979050858256d2040d734b282afe (patch) | |
tree | 153ac6d83de80fd39a6724e72a3beb6a56992300 /roles/install_wg_add_vpn/tasks | |
parent | b53a8cf2283b2d6debb94cd399a72d25da0d7c82 (diff) |
new net with nat64
Diffstat (limited to 'roles/install_wg_add_vpn/tasks')
-rw-r--r-- | roles/install_wg_add_vpn/tasks/main.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/install_wg_add_vpn/tasks/main.yml b/roles/install_wg_add_vpn/tasks/main.yml new file mode 100644 index 0000000..40ed07c --- /dev/null +++ b/roles/install_wg_add_vpn/tasks/main.yml @@ -0,0 +1,30 @@ +--- +- name: install wg_add dependencies + pacman: + name: + - git + - make + - gcc + state: present + +- name: clone wg_add repo + git: + repo: https://github.com/FreifunkMYK/wg_add.git + dest: /opt/wg_add_vpn + version: vpn + +- name: build wg_add + make: + chdir: /opt/wg_add_vpn + +- name: install wg_add service + template: + src: wg_add_vpn.service.j2 + dest: /etc/systemd/system/wg_add_vpn.service + mode: 0644 + +- name: start and enable wgkex service + systemd: + name: wg_add_vpn + state: started + enabled: yes |