Skip to content
Snippets Groups Projects

fix: restart firewalld only when it was running

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -77,3 +77,6 @@
name: firewalld
enabled: true
state: restarted
when:
- "'firewalld.service' in ansible_facts.services"
- ansible_facts.services["firewalld.service"].state == "running"
Loading