2017-11-17 20:32:48 +08:00
|
|
|
---
|
|
|
|
- name: restart firewalld
|
|
|
|
service:
|
|
|
|
name: firewalld
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
2018-11-16 04:56:11 +08:00
|
|
|
when:
|
|
|
|
- ansible_facts['services']['firewalld.service'] is defined
|
|
|
|
- ansible_facts['services']['firewalld.service']['state'] != 'masked'
|