That did the trick!
Thank you!
On Friday, August 18, 2017 at 3:03:23 PM UTC-5, Kai Stian Olstad wrote:
>
> On 17. aug. 2017 17:18, Mark Huang wrote:
> > What is the proper syntax for trying to do something like this? It works
> > fine but it gives me a warning that says not to use templating
> delimiters.
> >
> > when: "{{ customer }}.aws_cloud_formation_state == 'present'"
> >
> > I have tried just doing
> >
> > when: customer.aws_cloud_formation_state == 'present'
> >
> > but that just goes into the customer dictionary looking for
> > aws_cloud_formation. I would like to take a variable 'customer' and use
> it
> > as the conditional. It works fine, but what is the correct syntax for
> > getting it to work without giving a warning.
> You need to use vars
>
> when: vars[customer].aws_cloud_formation_state == 'present'
>
> --
> Kai Stian Olstad
>
--
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/6c9d0c17-a65b-48cd-903d-4ae259467bec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.