From b4e8b5f82e942dc5861198d26d19edc3d273b7c2 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 15 Feb 2024 23:01:26 +0100 Subject: netbox --- roles/netbox/handlers/main.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/netbox/handlers/main.yaml (limited to 'roles/netbox/handlers') 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 -- cgit v1.2.3