Skip to content

Instantly share code, notes, and snippets.

@extantpedant
Created April 11, 2017 17:09
Show Gist options
  • Save extantpedant/eeb9384ef849ca2f944e88e4eb770152 to your computer and use it in GitHub Desktop.
Save extantpedant/eeb9384ef849ca2f944e88e4eb770152 to your computer and use it in GitHub Desktop.
rabbitmq firewall ansible
# Deny everything and enable UFW
- ufw:
state: enabled
policy: deny
# default logging
- ufw:
logging: off
#ssh
- ufw:
rule: allow
port: ssh
proto: tcp
#rabbitmq
- ufw:
rule: allow
port: 5672
proto: tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment