Cloud Computing - Ansible

Back to Course

Lesson Description

Lession - #838 Ansible Inventory

The Ansible inventory file defines the hosts and groups of hosts whereupon orders, modules, and tasks in a playbook operate. The record can be in one of many organizations relying upon your Ansible environment and plugins. Normal configurations incorporate INI and YAML.

Ansible works numerous oversaw has in your framework simultaneously, utilizing a list or group of files is known as the inventory.

When a inventory is defined, you use patterns to choose the hosts or gatherings you need to go against to Ansible.

The default location for inventory is a file called /etc/ansible/hosts. You can likewise determine an alternate inventory document at the order line utilizing the - I choice. You can pull the stock record from dynamic or cloud sources or various organizations (YAML, ini>
. Ansible has stock modules to make it adaptable and alter.