Created
August 30, 2020 21:35
-
-
Save msaladna/aac378c761c077286706d8d86fe8a658 to your computer and use it in GitHub Desktop.
Sample Ansible play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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