How can I pass variable to ansible playbook in the command line?

Question:

I’m new to ansible and wonder how to do so as the following didn’t work

Where django_fixtures is my variable.

Answer:

Reading the docs I find the section Passing Variables On The Command Line, that gives this example:

Others examples demonstrate how to load from JSON string (≥1.2) or file (≥1.3)

Leave a Reply