Hi Mikael, There are essentially two ways you can do this:
1) Use quoted JSON 2) Put the data in either a JSON or YAML file. Please refer to the documentation here for more details: http://docs.ansible.com/playbooks_variables.html#passing-variables-on-the-command-line Thanks! On Thu, Dec 11, 2014 at 11:22 AM, Mikael Sandström <[email protected]> wrote: > Hi, > > I got a list that looks like this > > listname: > - name: ble > version: 1 > path: /some/path > ... > ... > > > which is accessed as > > - name: do something > shell: run some command > with_items: listname > > > If I want to pass the list to a playbook as an --extra-vars, how would I > do that? > > regards > /M > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/bd3b24c6-0936-41a6-87ed-581142f0b354%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/bd3b24c6-0936-41a6-87ed-581142f0b354%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAMFyvFh_OL_Uq7wZWFe3HZukqb%2BLbAthehEds-TCQkbTjsJByw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
