Last active
October 18, 2019 21:40
-
-
Save MACscr/7d7d5e8a0fa46ba1a31e9df553ffbde1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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