source FOO in Ansible?
Kevin Fenzi
kevin at scrye.com
Mon Apr 28 15:14:33 UTC 2014
On Mon, 28 Apr 2014 15:07:24 +0200
Miroslav Suchý <msuchy at redhat.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20140428/52d9626d/attachment.sig>
More information about the infrastructure
mailing list