The below task is not working as expected.
i am expecting it will print message for at least 2 times which is defined 
and skip rest 2.


TASK [Connect to Isilon Device] 
****************************************************************************************************
skipping: [localhost]



---
- name: "Loop Iteration List"
hosts: localhost
vars:
nfs_prod_target_id: "Khan"
nfs_prod_source_id: "Siddque"
tasks:
- name: "Connect to Isilon Device"
ansible.builtin.debug:
msg: "{{ item }}"
when: item is defined
loop:
- "{{ nfs_prod_source_id }}"
- "{{ nfs_prod_target_id }}"
- "{{ nfs_dev_source_id }}"
- "{{ nfs_dev_target_id }}"

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ab5140ae-23c9-4485-b394-3e31fa2891cfn%40googlegroups.com.

Reply via email to