Browse Source

systemd check

master
Bastiaan Stroosnijder 5 months ago
parent
commit
1d287d1877
  1. 2
      handlers/main.yml

2
handlers/main.yml

@ -1,12 +1,14 @@
---
- name: restart_crowdsec
when: ansible_service_mgr == 'systemd'
ansible.builtin.systemd:
name: "{{ pilab_crowdsec_service }}"
daemon_reload: yes
state: restarted
- name: restart_crowdsec_bouncer
when: ansible_service_mgr == 'systemd'
ansible.builtin.systemd:
name: "{{ pilab_crowdsec_service_bouncer }}"
daemon_reload: yes

Loading…
Cancel
Save