Hi

I am having the following.
Given the following Variable rule:

ec2_security_groups_test:
    - sg_name: test-group
      sg_description: test-group
      vpc_id: "vpc-XXXXXX"
      region: "{{ region }}"
      sg_rules:
       - proto: 50
         from_port: -1
         to_port: -1
         cidr_ip: 12.12.12.12/32
       - proto: 50
         from_port: -1
         to_port: -1
         cidr_ip: 13.13.13.13/32
       - proto: 50
         from_port: -1
         to_port: -1
         group_name: test-group

it will work on the 1st run, but on the second I will have:

<Response><Errors><Error><Code>InvalidPermission.Duplicate</Code><Message>the 
specified rule "peer: 12.12.12.12/32, protocol: 50, ALLOW" already 
exists</Message></Error></Errors><RequestID>e890595b-9609-4c31-a611-87da7b5de7ae</RequestID></Response>


I have tried specifying Ports, also "-1".. Nothing seems to work.
If I say TCP or UDP it works fine, but when I specify a numeric port as 
above I got the issue:


Any possible workaround/tips?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/97951f0b-e9bc-4506-a893-f77e9ebce62b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to