Skip to content

Instantly share code, notes, and snippets.

@MACscr
Last active October 18, 2019 21:40
Show Gist options
  • Save MACscr/7d7d5e8a0fa46ba1a31e9df553ffbde1 to your computer and use it in GitHub Desktop.
Save MACscr/7d7d5e8a0fa46ba1a31e9df553ffbde1 to your computer and use it in GitHub Desktop.
# open firewall for remote access from select hosts
- hosts: localhost
gather_facts: no
tasks:
- name: Create redis firewall group
local_action:
module: vultr_firewall_group
name: redis
run_once: yes
- hosts: apnscp
tasks:
- name: enable remote redis access to select hosts
local_action:
module: vultr_firewall_rule
group: redis
protocol: tcp
port: 6379
cidr: "{{ ansible_default_ipv4.address }}/32"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment