From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Creating and updating dynamic inventories

Creating and updating dynamic inventories - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Creating and updating dynamic inventories

Another way to work with inventory is dynamic inventory. Dynamic inventory is convenient because it allows you to fetch information from external sources. So, Tower comes with a set of dynamic inventories to connect to more common external environments like AWS, Azure, OpenStack, and much more, and you can even use custom inventory scripts. I'm going to demonstrate both of them. So it starts with the credentials. I want to show you how to create inventory to connect to Azure, so I'm going to create some Azure credentials. Let's just call it Azure and organization. That will be the default organization and then the credential type is. Right here, Microsoft Azure Resource Manager. Azure has two types of credentials. We need to resource manager credential. So what do we see? We see that there is subscription ID. Let's put in the subscription ID. Next I need the client ID. Then we are going to use the client secret. And last, there is the tenant ID. Also, there is a password and the…

Contents