Day 11 — Inventory Masterclass
Inventory = Aapke Ansible ke servers ki list + unke variables.
⭐ PART 1 — Static Inventory (hosts file)
Default location:
/etc/ansible/hosts
Example:
[web]
192.168.1.10
192.168.1.11
[db]
192.168.1.20
Run command:
ansible web -m ping
ansible db -m...
surajcode.hashnode.dev3 min read