Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ufw:
pkg.installed
enable ufw:
cmd.run:
- name: ufw enable
- require:
- pkg: ufw
enable ssh:
cmd.run:
- name: ufw allow ssh
- require:
- pkg: ufw
{% if 'saltmaster' in grains['roles'] %}
allow salt:
cmd.run:
- name: ufw allow salt
- require:
- pkg: ufw
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.