summaryrefslogtreecommitdiff
path: root/roles/install_fastd
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_fastd')
-rw-r--r--roles/install_fastd/handlers/main.yml10
-rw-r--r--roles/install_fastd/tasks/main.yml4
2 files changed, 14 insertions, 0 deletions
diff --git a/roles/install_fastd/handlers/main.yml b/roles/install_fastd/handlers/main.yml
new file mode 100644
index 0000000..e8051bc
--- /dev/null
+++ b/roles/install_fastd/handlers/main.yml
@@ -0,0 +1,10 @@
+---
+- name: reload fastd
+ systemd:
+ name: fastd@ffmyk.service
+ state: reloaded
+
+- name: restart fastd
+ systemd:
+ name: fastd@ffmyk.service
+ state: restarted
diff --git a/roles/install_fastd/tasks/main.yml b/roles/install_fastd/tasks/main.yml
index c6434d0..4a0a131 100644
--- a/roles/install_fastd/tasks/main.yml
+++ b/roles/install_fastd/tasks/main.yml
@@ -16,6 +16,8 @@
src: fastd.conf.j2
dest: /etc/fastd/ffmyk/fastd.conf
mode: 0640
+ notify: restart fastd
+
- name: create backbone folder
file:
path: /etc/fastd/ffmyk/backbone
@@ -41,6 +43,7 @@
- fastd13
- fastd14
- fastd15
+ notify: reload fastd
- name: add fastd bin folder
file:
@@ -52,6 +55,7 @@
src: fastd_up.sh.j2
dest: /etc/fastd/ffmyk/bin/up.sh
mode: 0744
+ notify: restart fastd
- name: add fastd peers folder
file: