|
@@ -6,3 +6,18 @@
|
|
|
|
|
|
- include: debian.yml
|
|
|
when: ansible_distribution == "Debian"
|
|
|
+
|
|
|
+- name: Create fastd config directories
|
|
|
+ file: path=/etc/fastd/{{item.name}} state=directory recurse=yes
|
|
|
+ with_items:
|
|
|
+ - "{{fastd_instances}}"
|
|
|
+
|
|
|
+- name: Create fastd configs
|
|
|
+ template: src=fastd.conf.j2 dest=/etc/fastd/{{item.name}}/fastd.conf
|
|
|
+ with_items:
|
|
|
+ - "{{fastd_instances}}"
|
|
|
+
|
|
|
+- name: Create fastd secrets
|
|
|
+ template: src=secret.conf.j2 dest=/etc/fastd/{{item.name}}/secret.conf
|
|
|
+ with_items:
|
|
|
+ - "{{fastd_instances_secret}}"
|