aboutsummaryrefslogtreecommitdiff
path: root/roles/netbox/handlers/main.yaml
blob: a22359e58d3d794efe95f7f171cd501b189a66a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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