Skip to Content
Practical Ansible 2
book

Practical Ansible 2

by Daniel Oh, James Freeman, Fabio Alessandro Locati
June 2020
Intermediate to advanced content levelIntermediate to advanced
410 pages
9h 52m
English
Packt Publishing
Content preview from Practical Ansible 2

Authentication

Since Ansible will use openstacksdk as its backend, you will need to ensure that openstacksdk is able to connect to the OpenStack cluster.

To do this, you can change the ~/.config/openstack/clouds.yaml file, ensuring that there is a configuration for the cloud you want to use it for.

An example of what a correct OpenStack credentials set could look like is as follows:

clouds:  test_cloud:    region_name: MyRegion    auth:      auth_url: http://[YOUR_AUTH_URL_HERE]:5000/v2.0/      username: [YOUR_USERNAME_HERE]      password: [YOUR_PASSWORD_HERE]      project_name: myProject

It's also possible to set a different config file location if you are willing to export the OS_CLIENT_CONFIG_FILE variable as an environment variable.

Now that you have set up the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ansible - Third Edition

Mastering Ansible - Third Edition

James Freeman, Jesse Keating
Security Automation with Ansible 2

Security Automation with Ansible 2

Akash Mahajan, MADHU AKULA

Publisher Resources

ISBN: 9781789807462Supplemental Content