Hey guys!
Ansible is AWESOME!
I’m planning to move away from running “shell:” via Ansible, in favor of native modules, but, it is not working, as follows…
Can someone explain to me, why this task works:
Hey guys!
Ansible is AWESOME!
I’m planning to move away from running “shell:” via Ansible, in favor of native modules, but, it is not working, as follows…
Can someone explain to me, why this task works:
Hi!
You first need to upgrade your version of shade. The latest version is 1.4.0.
Second, you should not expect a clouds.yaml to be read from the current
directory because of the way Ansible works (copying modules to temp directories
on the target host before running them). Instead, place it either in the
/etc/openstack directory, or in ~/.config/openstack (of the user running the
task).
Alternatively, you can just use the normal OS_ environment variables, but you
should not mix use of env vars with clouds.yaml.
-David
Thank you!
That explains why it wasn’t working, I was using Python Shade 0.6.
I just filled a bug report on Launchpad to upgrade it to the latest stable Shade release.
Upgrade to latest stable version 1.5.1 of Python Shade:
https://bugs.launchpad.net/ubuntu/+source/python-shade/+bug/1555819
Right now, Ubuntu 16.04 have Shade 1.3.0, I’ll give it another try, maybe it will work!
Also, I’m already using OS_* variables via Ansible “environment” feature, that’s how it works via “shell module” and I’ll stick with it by now (i.e., I’m not going to use clouds.yaml file yet).
Thanks again David!
Thiago