2016-09-14 16:39:21 +02:00
|
|
|
---
|
|
|
|
# this file included in a loop, called seperately for each community
|
|
|
|
# => configure fastd for one community here
|
2016-10-12 20:24:56 +02:00
|
|
|
# make a difference between gates an meshing-only servers
|
2016-09-14 16:39:21 +02:00
|
|
|
# hash describing community expected as "mf_com"; also expected: "f_ssh_keyfile"
|
|
|
|
|
|
|
|
- name: ensure fastd config dir - {{mf_com.abbreviation}}
|
|
|
|
file: path=/etc/fastd/{{mf_com.abbreviation}}VPN/peers
|
|
|
|
state=directory mode=0750
|
|
|
|
|
|
|
|
#- debug: var=mf_com
|
|
|
|
|
|
|
|
#- debug: var=f_ssh_keyfile
|
|
|
|
|
2016-10-12 20:24:56 +02:00
|
|
|
- name: include either gate ...
|
|
|
|
include: mwu-m-fastd-com-g.yml
|
|
|
|
when: fastd_config == 'gate'
|
2016-09-14 16:39:21 +02:00
|
|
|
|
2016-10-12 20:24:56 +02:00
|
|
|
- name: ... or meshing-only style
|
|
|
|
include: mwu-m-fastd-com-o.yml
|
|
|
|
when: fastd_config == 'meshing-only'
|