Hi, I have the bellow security groups that is working :

name: modify sg_default rules
      local_action:
        module: ec2_group
        region: "us-east-1"
        vpc_id: "{{ vpcid }}"
        name: "test"
        rules:
          - proto: all
            cidr_ip: "{{ office_ip }}"
          - proto: tcp
            from_port: 22
            to_port: 22
            cidr_ip: "0.0.0.0/0"


This will open ssh port to the public and all ports to the office IP . I 
would like to have the ssh port open to the public only in a dev 
environment and not always .

Any ideas how can I do that ? 

-- 
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/6a11f79d-efec-4bfc-99c8-1c6ffc0278fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to