You've already forked ansible-role-csf
feat: Initial Project 🎉
This commit is contained in:
25
tasks/disable_firewall.yml
Normal file
25
tasks/disable_firewall.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user