feat: Initial Project 🎉
Some checks failed
CI / lint (push) Failing after 2m15s
CI / release (push) Has been skipped
CI / notify (push) Has been skipped

This commit is contained in:
2024-08-20 11:11:35 +12:00
commit d4366fef2a
22 changed files with 998 additions and 0 deletions

22
handlers/main.yml Normal file
View File

@@ -0,0 +1,22 @@
---
# csf/handlers/main.yml
- name: run csftest.pl
command: /etc/csf/csftest.pl
register: csf_check_contents
changed_when: false
failed_when: csf_check_contents.stdout.find('csf should function on this server') == -1
when: ansible_facts.virtualization_type != 'docker'
# toremove when: statement ^
- name: check csf conf
command: csf -c
register: csf_conf_check
changed_when: false
failed_when: "'error' in csf_conf_check.stdout.lower()"
- name: restart csf
command: csf -ra
- name: enable csf
command: csf -e