ansible-ffibk/roles/service-fastd-intragate/tasks/main.yml
Tobias Hachmer 94cb21daad Add a bunch of new roles
- Update Readme
- Update ansible.cfg
- Add playbook to set up gateways
- Add group variables
2017-09-11 23:21:44 +02:00

28 lines
622 B
YAML

---
- name: install fastd packages
apt:
name: fastd
state: present
become: true
- name: create fastd intragate directories
file:
path: "/etc/fastd/{{ item.key }}igVPN"
state: directory
mode: 0755
with_dict: "{{ meshes }}"
become: true
- name: template fastd mesh config
template:
src: fastd-intragate.conf.j2
dest: "/etc/fastd/{{ item.key }}igVPN/fastd.conf"
with_dict: "{{ meshes }}"
become: true
- name: write fastd intragate secret
template:
src: fastd-secret.conf.j2
dest: "/etc/fastd/{{ item.key }}igVPN/secret.conf"
with_dict: "{{ meshes }}"
become: true