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.

Importing static inventories

Importing static inventories

You know how to work with inventories in Ansible Tower, and we have actually created an inventory in lesson four. But creating an inventory is one thing, you can also import them. And in this video, you will learn how to import a static inventory. So static inventories can easily be imported if they are in Git or any other external system. All static inventory files are imported with the awx-manage-cli utility on the tower server. You would use something like awx-manage-inventory-import –sources-root-my-inventory. Inventory name is my inventory. And that makes it a lot easier. That is the reason why you want to import inventory files. You can easily get all of the managed nodes in your tower environment. And from there, you can further fine tune. Let me demonstrate. So we will start on the product and I just need to make sure that we have a product. So the product name is my product. And I want to make sure that we have a right connection to the tower GitHub repository, which is the…

Contents