Hi Vladimir,

I tried with mentioned suggestion but no success.

with_items:
    - "{{ dp_record | default(None) }}"
    - "{{ iampython_record | default(None) }}"
    - "{{ iamservice_record | default(None) }}"
    - "{{ iamesa_record | default(None) }}"
  when: item

I am getting following error:
fatal: [BLVYUM01]: FAILED! => {"msg": "The conditional check 'item' failed. 
The error was: Invalid conditional detected: invalid syntax 






On Wednesday, February 5, 2020 at 10:48:12 PM UTC+5:30, Vladimir Botka 
wrote:
>
> On Wed, 5 Feb 2020 08:37:02 -0800 (PST) 
> Rakesh Parida <[email protected] <javascript:>> wrote: 
>
> >       when: item is defined and item != None and item != "" 
> > [...] 
> > Still i get the same result: 
>
> Yes. This is the result of your "improvement". See below. 
>
> > >> Yes. Test the "item". For example 
> > >>   when: item 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4f1b2283-b62a-4a53-b437-1559a6999a3a%40googlegroups.com.

Reply via email to