Skip to content

Instantly share code, notes, and snippets.

@msaladna
Created August 30, 2020 21:35
Show Gist options
  • Save msaladna/aac378c761c077286706d8d86fe8a658 to your computer and use it in GitHub Desktop.
Save msaladna/aac378c761c077286706d8d86fe8a658 to your computer and use it in GitHub Desktop.
Sample Ansible play
---
- hosts: localhost
gather_facts: no
handlers:
- name: Yell at chex
shell: >-
echo "Chex is a dummy"
tasks:
- name: Open port 85/TCP
firewalld:
state: "{{ mode | default('enabled') }}"
permanent: yes
immediate: yes
port: 85/tcp
notify:
- Yell at chex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment