Run a playbook with variables from a JSON file
CautionRuns the playbook with extra variables loaded from the file, which override every other variable source.
ansible-playbook site.yml -e @vars.jsonEdit 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.