I tried similar things as well see below
test@master:/etc/ansible$ ansible -m shell -a "source ~/adminrc.sh ; cinder list" devstack
devstack | FAILED | rc=1 >>
/bin/sh: 1: source: not found
ERROR: You must provide a user name through --os-username or env[OS_USERNAME].
See my adminrc file :
test
↧