ansible Inventory Pass dynamic inventory to ansible-playbook


Example

ansible-playbook -i path/to/dynamic-inventory-script.py -l myhost myplaybook.yml

See dynamic inventory for more details.