Files
ansible-role-csf/tasks/disable_firewall.yml
Aaron Guise d4366fef2a
Some checks failed
CI / lint (push) Failing after 2m15s
CI / release (push) Has been skipped
CI / notify (push) Has been skipped
feat: Initial Project 🎉
2024-08-20 11:11:35 +12:00

26 lines
477 B
YAML

---
# csf/tasks/disable_firewall.yml
- name: disable firewalld (RedHat case)
service:
name: firewalld
state: stopped
enabled: no
when:
- ansible_facts.os_family == 'RedHat'
- ansible_facts.service_mgr == 'systemd'
ignore_errors: true
tags:
- services
- name: disable ufw (Ubuntu case)
service:
name: ufw
state: stopped
enabled: no
when:
- ansible_facts.distribution == 'Ubuntu'
ignore_errors: true
tags:
- services