Fix services enabled issues
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
d4e8f60fe9
commit
2a48449792
2 changed files with 12 additions and 0 deletions
|
|
@ -34,3 +34,9 @@
|
||||||
# notify: restart crowdsec-firewall-bouncer
|
# notify: restart crowdsec-firewall-bouncer
|
||||||
# loop_control:
|
# loop_control:
|
||||||
# label: "{{ item.regex }}"
|
# label: "{{ item.regex }}"
|
||||||
|
|
||||||
|
- name: Enable crowdsec firewall bouncer on boot
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: crowdsec-firewall-bouncer
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,12 @@
|
||||||
when: crowdsec_whitelist.enabled
|
when: crowdsec_whitelist.enabled
|
||||||
notify: restart crowdsec
|
notify: restart crowdsec
|
||||||
|
|
||||||
|
- name: Enable crowdsec on boot
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: crowdsec
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- name: Flush handlers to apply config
|
- name: Flush handlers to apply config
|
||||||
ansible.builtin.meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue