Implement proper Blacklist Configuration to fastd

This commit is contained in:
Bastian 2019-03-27 14:47:33 +01:00
parent 52e0c7115a
commit 8ad83aa956

View File

@ -44,13 +44,19 @@
file: src=/etc/fastd/{{ site_code }}/secret.conf dest=/etc/fastd/{{ site_code }}{{ item }}/secret.conf state=link
with_sequence: start=0 count={{ fastd_instances }}
- name: Make sure at least a dummy blacklist.sh is available
- name: Create Blacklist Script
copy: src=blacklist.sh dest=/etc/fastd/{{ site_code }}/blacklist.sh mode=0755 force=no
- name: Create symlinks (blacklist)
file: src=/etc/fastd/{{ site_code }}/blacklist.sh dest=/etc/fastd/{{ site_code }}{{ item }}/blacklist.sh state=link
with_sequence: start=0 count={{ fastd_instances }}
- name: Create Blacklist directory
file: path=/etc/fastd/{{ site_code }}/vpn-blacklist/ state=directory
- name: Create Blacklist file
copy: src=blacklist.json dest=/etc/fastd/{{ site_code }}/vpn-blacklist/blacklist.sh mode=0755
- name: Enable fastd {{ site_code }}
service: name=fastd@{{ site_code }}{{ item }} enabled=yes
with_sequence: start=0 count={{ fastd_instances }}