Hello everyone,

I'm just trying to do some cleaning up as part of my playbooks and one task 
should go around and remove dummy security group(s).
Because of this case, I don't see the utility of the 'description' 
parameter as being mandatory.

One step further, I'd rather see the module support something like an 
optional 'id' parameter, which, when passed, would render the 'name' not 
mandatory. This would be really useful for using with the state=absent 
scenario. Not sure how Ansible handles parameters 
inter-dependency/over-riding/amending but I think there are some modules 
that come with comparable logic.

For example, the debug says something like:

TASK: [debug var=web_sg_creation] 
********************************************* 
ok: [localhost] => {
    "web_sg_creation": {
        "changed": false, 
        "group_id": "sg-dcfd15b5", 
        "invocation": {
            "module_args": "", 
            "module_name": "ec2_group"
        }
    }
}

So how am I to go around doing the state=absent in the best Ansible-way?

Would be interesting to see some other opinions / suggestions.

-- 
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/7906b64e-b43d-4c83-bcd4-fc4e425caa23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to