Description:
- Organize managed nodes in centralized files that provide Ansible with system information and network locations.
- A list of managed nodes provided by one or more ‘inventory sources’. Your inventory can specify information specific to each node, like IP address. It is also used for assigning groups, that both allow for node selection in the Play and bulk variable assignment.
- To check ssh connection to host
ansible all -i inventory.yml -m ping