I'm trying to append new tunnel interface to empty list, but i'm got below 
error. Can you please help me out here ?
*tasks:         *








*        - name: empty list           set_fact:                  
 list_tunnel: []         - name: create new list for tunnel          
 set_fact:                 list_tunnel_new: "{{ list_tunnel + 
['tunnel.{{item}}'] }}"           loop: "{{ range(1,10)|list}}"           *

*error: *

*fatal: [SJL]: FAILED! => {"msg": "The task includes an option with an 
undefined variable. The error was: 'item' is undefined\n\nThe error appears 
to be in '/etc/ansible/aws/interface_palo_facts.yaml': line 34, column 12, 
but may\nbe elsewhere in the file depending on the exact syntax 
problem.\n\nThe offending line appears to be:\n\n\n - name: print facts\n ^ 
here\n"}*

thank you..!!

-- 
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/86f78a44-cb98-46bd-9db2-e2237c8b07a9n%40googlegroups.com.

Reply via email to