94cb21daad
- Update Readme - Update ansible.cfg - Add playbook to set up gateways - Add group variables
28 lines
596 B
YAML
28 lines
596 B
YAML
---
|
|
- name: install fastd packages
|
|
apt:
|
|
name: fastd
|
|
state: present
|
|
become: true
|
|
|
|
- name: create fastd directories
|
|
file:
|
|
path: "/etc/fastd/{{ item.key }}VPN"
|
|
state: directory
|
|
mode: 0755
|
|
with_dict: "{{ meshes }}"
|
|
become: true
|
|
|
|
- name: template fastd mesh config
|
|
template:
|
|
src: fastd-mesh.conf.j2
|
|
dest: "/etc/fastd/{{ item.key }}VPN/fastd.conf"
|
|
with_dict: "{{ meshes }}"
|
|
become: true
|
|
|
|
- name: write fastd mesh secret
|
|
template:
|
|
src: fastd-secret.conf.j2
|
|
dest: "/etc/fastd/{{ item.key }}VPN/secret.conf"
|
|
with_dict: "{{ meshes }}"
|
|
become: true
|