aboutsummaryrefslogtreecommitdiff
path: root/roles/netbox/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/netbox/handlers')
-rw-r--r--roles/netbox/handlers/main.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/netbox/handlers/main.yaml b/roles/netbox/handlers/main.yaml
new file mode 100644
index 0000000..a22359e
--- /dev/null
+++ b/roles/netbox/handlers/main.yaml
@@ -0,0 +1,22 @@
+---
+- name: Handle systemd
+ systemd:
+ name: netbox
+ state: restarted
+ become: true
+
+- name: Daemon reload
+ systemd:
+ daemon_reload: true
+ become: true
+
+- name: Enable units
+ systemd:
+ name: '{{ item }}'
+ enabled: true
+ state: started
+ become: true
+ loop:
+ - netbox-rq.service
+ - netbox.service
+ - netbox-housekeeping.timer