ansible-playbook --tags deploy site.yml

Category: IaC & Automation

ansible-playbook --tags deploy site.yml

Run only the tasks tagged deploy

Executes just the tasks tagged deploy, skipping the rest of the playbook. Tags let one playbook cover install, configure, and deploy steps while you invoke only what you need. Related: ansible-playbook --list-tasks site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.