source FOO in Ansible?

Miroslav Suchý msuchy at redhat.com
Mon Apr 28 13:07:24 UTC 2014


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....

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the infrastructure mailing list