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
1 merge request!3Change compute reference to login
......@@ -77,3 +77,6 @@
name: firewalld
enabled: true
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