25 lines
472 B
YAML
25 lines
472 B
YAML
---
|
|
- name: Disable firewalld and ufw
|
|
block:
|
|
- name: List services
|
|
service_facts:
|
|
|
|
- name: Disable service firewalld
|
|
systemd:
|
|
name: firewalld
|
|
state: stopped
|
|
enabled: no
|
|
when:
|
|
"'firewalld.service' in services"
|
|
|
|
- name: Disable service ufw
|
|
systemd:
|
|
name: ufw
|
|
state: stopped
|
|
enabled: no
|
|
when:
|
|
"'ufw.service' in services"
|
|
|
|
when:
|
|
- disable_service_firewall is defined and disable_service_firewall
|