Skip to content

Instantly share code, notes, and snippets.

@wandersick
Last active June 9, 2019 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wandersick/8f284f543e47c66d976819b87fd967df to your computer and use it in GitHub Desktop.
Save wandersick/8f284f543e47c66d976819b87fd967df 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