2017-09-05 12:01:27 +02:00
|
|
|
---
|
2017-10-03 20:25:17 +02:00
|
|
|
- name: configure systemd unit fastd@
|
|
|
|
systemd:
|
|
|
|
name: "fastd@{{ item.key }}igVPN"
|
|
|
|
enabled: yes
|
|
|
|
with_dict: "{{ meshes }}"
|
2017-09-05 12:01:27 +02:00
|
|
|
|
|
|
|
- name: create fastd intragate directories
|
|
|
|
file:
|
|
|
|
path: "/etc/fastd/{{ item.key }}igVPN"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
|
2017-10-03 20:25:17 +02:00
|
|
|
- name: create fastd peer intragate directories
|
|
|
|
file:
|
|
|
|
path: "/etc/fastd/{{ item.key }}igVPN/peers"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
|
|
|
|
- name: clone fastd peer intragate repos
|
|
|
|
git:
|
|
|
|
repo: "{{ item.value.peers_intragate_repo }}"
|
|
|
|
dest: "/etc/fastd/{{ item.key }}igVPN/peers"
|
|
|
|
version: master
|
|
|
|
update: no
|
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
become: false
|
|
|
|
|
2017-09-05 12:01:27 +02:00
|
|
|
- name: template fastd mesh config
|
|
|
|
template:
|
|
|
|
src: fastd-intragate.conf.j2
|
|
|
|
dest: "/etc/fastd/{{ item.key }}igVPN/fastd.conf"
|
2017-10-03 20:25:17 +02:00
|
|
|
notify: restart fastd intragate instances
|
2017-09-05 12:01:27 +02:00
|
|
|
with_dict: "{{ meshes }}"
|
|
|
|
|
|
|
|
- name: write fastd intragate secret
|
|
|
|
template:
|
|
|
|
src: fastd-secret.conf.j2
|
|
|
|
dest: "/etc/fastd/{{ item.key }}igVPN/secret.conf"
|
2017-10-03 20:25:17 +02:00
|
|
|
notify: restart fastd intragate instances
|
2017-09-05 12:01:27 +02:00
|
|
|
with_dict: "{{ meshes }}"
|