extra variables

Variables passed on the command line when a playbook starts, which override values from every other source.

In more detail

Use ansible-playbook -e name=value or --extra-vars. Because they win over everything, they suit one-off overrides at launch; values that belong to an environment should live in inventory files where reviewers can see them.

Example

ansible-playbook site.yml -e greeting=hi

Related terms

Taught in

References

Certification courses