From 7be83dc844514a5e8601127fd23a1371077f28f1 Mon Sep 17 00:00:00 2001 From: Jaanus Torp Date: Thu, 23 Oct 2014 13:19:23 +0100 Subject: [PATCH] Fixed really annoying omission in the example without the task would complete without errors or warnings but delete all egress rules --- lib/ansible/modules/cloud/ec2_group.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ec2_group.py b/lib/ansible/modules/cloud/ec2_group.py index 1c8aa70101..250095a9dc 100644 --- a/lib/ansible/modules/cloud/ec2_group.py +++ b/lib/ansible/modules/cloud/ec2_group.py @@ -102,6 +102,7 @@ EXAMPLES = ''' - proto: tcp from_port: 80 to_port: 80 + cidr_ip: 0.0.0.0/0 group_name: example-other # description to use if example-other needs to be created group_desc: other example EC2 group @@ -339,7 +340,7 @@ def main(): cidr_ip=ip) changed = True elif vpc_id and not module.check_mode: - # when using a vpc, but no egress rules are specified, + # when using a vpc, but no egress rules are specified, # we add in a default allow all out rule, which was the # default behavior before egress rules were added default_egress_rule = 'out--1-None-None-None-0.0.0.0/0'