Today you have to specify user/password/tenant/url with every task. It would be nice if the modules could read these from the environment instead - it would make playbooks more concise. The EC2 module checks the environment if they are not passed as parameters.
thanks - but that’s very long (and still needs login_tenant_name), and it has lots of brackets etc, and you would need it with every task. I think this looks better:
Also I should point out it is “lookup” not “lookup_plugin”.
I think there are plenty of reasons to not read this from the environment since you might be logging in as root or bob and needing a username of “openstack”.
However having it default to the current user in the module if not provided I am totally good with, I’d gladly expect a patch that made this happen for all of openstack_*, though we would also want
to make sure we tested all of the playbook in github.com/ansible to make sure it was good.