Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
carlessanagustin / ec2_group_project.yml
Last active October 11, 2018 19:25
ANSIBLE: Change AWS EC2 Security Group configuration.
#!/usr/local/bin/ansible-playbook -v
---
- hosts: localhost
gather_facts: False
connection: local
vars:
rule_list:
- { proto: tcp, from_port: 80, to_port: up, cidr_ip: 10.0.0.1/32 }
- { proto: tcp, from_port: 443, to_port: 443, cidr_ip: 10.0.0.1/32 }