February 2018
Intermediate to advanced
200 pages
5h 51m
English
Let's download the dynamic inventory script and set the executable bit as follows:
$ curl https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/openstack.py > openstack.py$ chmod +x openstack.py
After we set the executable bit, we need to set the environment variables so that the inventory script can authenticate with the OpenStack keystone. The easiest way to set up the environment variables is to execute the script that we downloaded from the Horizon dashboard in the first recipe, Preparing Ansible to work with OpenStack.
Once the environment variables are set, we can execute the following command and check whether or not all the resources are getting reported:
$ ./openstack.py --list{ "RegionOne": [ ...Read now
Unlock full access