aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/handlers
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-07 16:27:49 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-12 14:56:32 +0100
commite8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 (patch)
tree41ba5163cf6f110521f2ebc9035f77d2754796a0 /roles/space_server/handlers
downloadlabitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.gz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.xz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.zip
initial commit
Diffstat (limited to 'roles/space_server/handlers')
-rw-r--r--roles/space_server/handlers/main.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/roles/space_server/handlers/main.yml b/roles/space_server/handlers/main.yml
new file mode 100644
index 0000000..7316999
--- /dev/null
+++ b/roles/space_server/handlers/main.yml
@@ -0,0 +1,66 @@
+---
+- name: reload nftables
+ systemd:
+ name: nftables.service
+ state: reloaded
+ when: "'container' not in ansible_env"
+
+- name: restart networkd
+ systemd:
+ name: systemd-networkd.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart blackhole
+ systemd:
+ name: blackhole.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart sshd
+ systemd:
+ name: sshd.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart bird
+ systemd:
+ name: '{{ item }}.service'
+ state: restarted
+ with_items:
+ - bird
+ - bird6
+ when: "'container' not in ansible_env"
+
+- name: restart dhcpd
+ systemd:
+ name: dhcpd.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart radvd
+ systemd:
+ name: radvd.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart radiusd
+ systemd:
+ name: radiusd.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+- name: restart getusers
+ systemd:
+ name: getusers.timer
+ state: restarted
+ daemon_reload: yes
+ when: "'container' not in ansible_env"
+
+- name: restart named
+ systemd:
+ name: named.service
+ state: restarted
+ when: "'container' not in ansible_env"
+
+# vim: set ts=2 sw=2 et: