Skip to content

Instantly share code, notes, and snippets.

@wandersick
Last active May 27, 2019 20:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandersick/3e74ac7f5c2f79b2bba0d7155985be7a to your computer and use it in GitHub Desktop.
Save wandersick/3e74ac7f5c2f79b2bba0d7155985be7a to your computer and use it in GitHub Desktop.
---
- hosts: all # Apply to all hosts in the inventory file
remote_user: root
tasks:
- name: ensure firewall service is running
service:
name: "{{ item }}"
state: started
enabled: yes
with_items:
- firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment