ansible-playbook --limit web1 site.yml

Category: IaC & Automation

ansible-playbook --limit web1 site.yml

Run a playbook against a subset of hosts

Restricts execution to the single host web1, or any pattern you pass, even when the inventory lists many more. Useful for rolling out changes incrementally or re-running a failed host. Related: ansible-playbook -i prod.inventory site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.