Skip to content
Snippets Groups Projects
Commit 815ced55 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

fix: restart firewalld only when it was running

parent 55cae529
No related branches found
No related tags found
No related merge requests found
...@@ -77,3 +77,6 @@ ...@@ -77,3 +77,6 @@
name: firewalld name: firewalld
enabled: true enabled: true
state: restarted state: restarted
when:
- "'firewalld.service' in ansible_facts.services"
- ansible_facts.services["firewalld.service"].state == "running"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment