i think what you want is:
 lookup('env', 'OS_PASSWORD')

On Fri, Apr 24, 2015 at 1:21 PM, John Test <[email protected]> wrote:
> Hello
>
> I am trying to use environment variables in my playbook instead of static
> entries.
> For example username, password etc. for Openstack.
>
> I have seen this page
> http://docs.ansible.com/playbooks_environment.html
> But I don't understand how to pass specific environment variables inside a
> playbook.
>
> In case of Openstack we have
> OS_PASSWORD=Password1
> OS_AUTH_URL=http://controller:35357/v2.0
> OS_USERNAME=demo
> OS_TENANT_NAME=demo
>
> How can I assign these in a playbook such as this
> http://pastebin.com/aMaihCme
>
>
> Thanks!
>
> --
> 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/f9a70b3e-003c-4198-9821-877793ba9b85%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8mGOe-L-DyanJEH9U9JfvkL0%3D%2Bdyyjo89WMHGOwYUSt4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to