On Mon, 28 Apr 2014 15:07:24 +0200
Miroslav Suchý <[email protected]> wrote:

> Lets have file FOO with:
> export OS_USERNAME=admin
> export OS_PASSWORD=ADMIN_PASS
> 
> can I somehow do in Ansible:
>   source FOO
> and for all next actions, those variables will be defined?
> 
> Writing:
>   - shell: source FOO && bar
> looks kind a ugly to me....

There's environment... 

http://docs.ansible.com/playbooks_environment.html

but you have to set that on every play you need it I guess, which is a
lot of duplication. 

kevin

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Reply via email to