# Ansible 2: how to use \`cloud\` var in Openstack modules?

**URL:** <https://forum.ansible.com/t/ansible-2-how-to-use-cloud-var-in-openstack-modules/19310>\
**Category:** Ansible Project\
**Created:** [September 20, 2015, 2:14pm UTC](https://forum.ansible.com/t/ansible-2-how-to-use-cloud-var-in-openstack-modules/19310 "2015-09-20T14:14:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alwin\_Schoemaker](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Alwin\_Schoemaker](https://forum.ansible.com/u/Alwin_Schoemaker)\
**Post date:** [September 20, 2015, 2:14pm UTC](https://forum.ansible.com/t/ansible-2-how-to-use-cloud-var-in-openstack-modules/19310/1 "2015-09-20T14:14:32Z")

</div>

Hi there,

I’m trying out Ansible 2.0 alpha and the new os\_\* modules. According to the documentation, instead of providing an auth config value, you should be able to define the cloud variable that refers to a configured cloud? The only thing I could find was that there should be a file /etc/ansible/openstack.yml, but there is no documentation whatsoever on how the structure of this file should be. Or how you can configure ansible to look in a different location for the openstack.yml file.

Anyone any idea on how to set this up? Repeating auth with username, password and project\_name in every task is a bit verbose…

Thanks!

Cheers,  
Alwin
