Hi All,

I have a question about the loop. As You know, loopback and main interface 
aren't any vlan so i need to add 'null' for intf_vlan's item

How can I handle this problem?

*Here is my '.*.yml' part and output;*
Thanks.

    - name: 
Extract 'interface, vlan, description, mtu , ip address, subnet, ISIS Process, 
Circuit Type and QoS'
      set_fact:
        intf_isis: "
{{ intf_isis | default([]) + item | regex_findall('.*interface\\s+(\\
S+)') }}" 
        intf_vlan: "
{{ intf_vlan | default([]) + item | regex_findall('.*vlan-type\\s+dot1q\\s+(
\\S+)') }}" 
#        intf_desc: "{{ item | regex_findall('.*description\\s+(\\S+)') }}" 
      loop: "{{ interface_detail }}"


[image: 2.PNG] <about:invalid#zClosurez>

-- 
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/e7e5d6ef-eb04-4c32-aa8c-868fb0b40288%40googlegroups.com.

Reply via email to