Run a playbook against a specific inventory
CautionRuns the playbook on the hosts listed in the given inventory file instead of the default one.
ansible-playbook -i inventory.ini site.ymlEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/ansible-playbook.md), licensed under CC BY 4.0.