aboutsummaryrefslogtreecommitdiff
path: root/roles/netbox/handlers/main.yaml
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-02-15 23:01:26 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-02-15 23:01:26 +0100
commitb4e8b5f82e942dc5861198d26d19edc3d273b7c2 (patch)
tree796a59a460fd436426784b272965f7f56800a1f0 /roles/netbox/handlers/main.yaml
parent98f866aa2ba09a74e7a06b827f35e2c0275bda97 (diff)
downloadansible_collection-b4e8b5f82e942dc5861198d26d19edc3d273b7c2.tar.gz
netbox
Diffstat (limited to 'roles/netbox/handlers/main.yaml')
-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