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.