2021-05-18 13:45:30 +00:00
|
|
|
---
|
|
|
|
- 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:
|
2021-09-24 09:31:23 +00:00
|
|
|
- disable_service_firewall is defined and disable_service_firewall
|