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

There are different ways to ensure that Ansible is able to manage Azure for you, based on the way your Azure account is set up, but they can all be configured in the ~/.azure/credentials file.

If you want Ansible to use the principal credentials for the Azure account, you will need to create a file that resembles the following:

[default]subscription_id = [YOUR_SUBSCIRPTION_ID_HERE]client_id = [YOUR_CLIENT_ID_HERE]secret = [YOUR_SECRET_HERE]tenant = [YOUR_TENANT_HERE]

If you prefer to use Active Directories with a username and password, you can do something like this:

[default]ad_user = [YOUR_AD_USER_HERE]password = [YOUR_AD_PASSWORD_HERE]

Lastly, you can opt for an Active Directory login with ADFS. In this case, you'll need ...

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