forked from FF-RGB/ansible
Improve fastd service handling and default port
This commit is contained in:
parent
088e0f7de1
commit
016fce0043
@ -6,4 +6,4 @@ fastd_instance: "{{ site_code }}"
|
||||
fastd_interface: vpn-{{ site_code }}
|
||||
fastd_mtu: 1280
|
||||
fastd_peers_limit: -1
|
||||
fastd_port: 50000
|
||||
fastd_port: 10000
|
||||
|
@ -22,6 +22,9 @@
|
||||
- Reload systemd
|
||||
- Restart fastd
|
||||
|
||||
- name: Disable fastd default instance
|
||||
service: name=fastd enabled=no
|
||||
|
||||
- name: Create directories
|
||||
file: path=/etc/fastd/{{ fastd_instance }}/peers state=directory
|
||||
|
||||
@ -32,3 +35,6 @@
|
||||
- name: Generate fastd secret
|
||||
fastd_key: path=/etc/fastd/{{ site_code }}/secret.conf
|
||||
notify: Restart fastd
|
||||
|
||||
- name: Enable fastd {{ site_code }}
|
||||
service: name=fastd@{{ site_code }} enabled=yes
|
||||
|
Loading…
Reference in New Issue
Block a user