From the course: Red Hat Certified Engineer (EX294) Cert Prep: 3 Managing Systems with Ansible
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Using dynamic inventory plugins
From the course: Red Hat Certified Engineer (EX294) Cert Prep: 3 Managing Systems with Ansible
Using dynamic inventory plugins
- In the EX294 foundations of Ansible course, we created a static inventory of file. That's entails listing the hosts that we want to manage as well as putting them into groups. I demonstrated both the INI and the ammo formats. Static Inventory files are easy to configure, they don't change, work for smaller environments and are large non-changing environments. However, if your environment changes such as if you have hosts that start up and shut down often you'll need to look into ways of managing inventory dynamically. A static Inventory file will not be sufficient in this case. Dynamic inventory is more complex to configure and stores inventory externally in configurable sources. It's good for large infrastructures, or when the infrastructure changes, which is common in cloud computing. You can manage dynamic inventory two ways, with inventory plugins or with inventory scripts. We'll start by talking about inventory…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.