You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffmyk-ansible/roles/install_wg_add/tasks/main.yml

31 lines
589 B
YAML

---
- 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 }}"