Re: source FOO in Ansible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 28 Apr 2014 15:07:24 +0200
Miroslav Suchý <msuchy@xxxxxxxxxx> 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
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux