Workshop Exercise: Inventories and Credentials in Ansible Automation Controller

Read this in other languages:
uk English,japan日本語,france Française,Español Español.

Objective

This workshop is designed to provide a practical understanding of how to manage inventories and credentials within the Ansible Automation Controller. You’ll learn how to navigate a preloaded inventory, understand its structure, and explore the setup and use of machine credentials for accessing managed hosts.

Table of Contents

  1. Introduction to Inventories
  2. Exploring the ‘Workshop Inventory’
  3. Understanding Machine Credentials
  4. Additional Credential Types
  5. Conclusion

1. Introduction to Inventories

Inventories in the Ansible Automation Controller are crucial for defining and organizing the hosts your playbooks will run against. They can be static, with a fixed list of hosts, or dynamic, pulling host lists from external sources.

2. Exploring the ‘Workshop Inventory’

The ‘Workshop Inventory’ is preloaded into your lab environment, representing a typical static inventory:

[web_servers]
web1 ansible_host=22.33.44.55
web2 ansible_host=33.44.55.66
...

3. Understanding Machine Credentials

Machine credentials are essential for establishing SSH connections to your managed hosts:

4. Additional Credential Types

The Ansible Automation Controller supports various credential types for different automation scenarios:

Each type is tailored to specific requirements, enhancing your automation’s flexibility and security.

5. Conclusion

This workshop introduces the foundational concepts of inventories and credentials within the Ansible Automation Controller. Understanding these components is crucial for efficiently managing your automation tasks and securing access to your infrastructure.


Navigation
Previous Exercise - Next Exercise

Click here to return to the Ansible for Red Hat Enterprise Linux Workshop