ansible-playbook -e 'app_version=2.1.0' site.yml

Category: IaC & Automation

ansible-playbook -e 'app_version=2.1.0' site.yml

Override playbook variables from the command line

Sets the app_version variable for this run via extra vars, taking precedence over values defined in files. Useful for promoting a specific build across environments without editing the playbook. Related: ansible-playbook --tags deploy site.yml.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.