Hello,
I have below strucure.
vars:
locations:
- parent_location: A
child_location:
- a1
- a2
- a3
- parent_location: B
child_location:
- b1
- b2
- b3
- parent_location: C
child_location:
- c1
- c2
- c3
now i have task something like below
command:
some-command '{{ A }}' create
command:
some-command '{{ a1 }}' --parent '{{ A }}'
command:
some-command '{{ b1 }}' --parent '{{ B }}'
and so-on, what's best way to achieve it ?
Thanks,
DJ
--
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/588f433f-92f8-4608-8e98-de1a0033f7e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.