---
- hosts: localhost
  connection: local
  vars:
    my_list: "hello,how,are,you"
 
  tasks:
    - block:
         ---- some logic 
      when: 
        - "{{ my_list | select('match','are') }}" == "are" 
        
     - block:
          ---- some logic 
       when: 
        - "{{ my_list | select('match','you') }}" == "you" 

I'm not able to get exact match value or please correct me 

Please help me for this issue 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to