From b53a8cf2283b2d6debb94cd399a72d25da0d7c82 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sun, 12 Dec 2021 15:15:03 +0100 Subject: merge fastd and uplink nodes --- roles/install_wg_add/tasks/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 roles/install_wg_add/tasks/main.yml (limited to 'roles/install_wg_add/tasks/main.yml') diff --git a/roles/install_wg_add/tasks/main.yml b/roles/install_wg_add/tasks/main.yml new file mode 100644 index 0000000..da7f0b4 --- /dev/null +++ b/roles/install_wg_add/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 + +- name: build wg_add + make: + chdir: /opt/wg_add + +- name: install wg_add service + template: + src: wg_add.service.j2 + dest: /etc/systemd/system/wg_add@.service + mode: 0644 + +- name: start and enable wgkex service + systemd: + name: wg_add@{{ item.name }} + state: started + enabled: yes + with_items: "{{ sites }}" -- cgit v1.2.3-54-g00ecf