Skip to content

Working with Inventory

Static Inventory Example

[webservers]
192.168.1.10
192.168.1.11

[databases]
db1.example.com

List Hosts

ansible all --list-hosts

Python Interpreter Override

[webservers]
192.168.1.10 ansible_python_interpreter=/usr/bin/python3