Run a playbook with a variable set on the command line
CautionRuns the playbook with the given extra variable, which takes precedence over the values set in the inventory and roles.
ansible-playbook site.yml -e 'name=value'Edit 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.