Again error((((

msg: "{{ array[int(item)]['contactId'] }}"

fatal: [10.137.25.64]: FAILED! => {"failed": true, "msg": "the field 'args' 
has an invalid value, which appears to include a variable that is 
undefined. The error was: 'int' is undefined\n\nThe error appears to have 
been in 
'/etc/ansible/monitoring/roles/set_global_vars_and_add_tab/tasks/main.yml': 
line 53, column 3, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n\n- set_fact:\n  ^ 
here\n"}

On Friday, January 20, 2017 at 6:42:46 PM UTC+4, Stankovic, Marko wrote:
>
> u'3' means that the value is a string (unicode). 
> Try with: 
>
> {{ array[int(item)]['contactId'] }} 
>
> ______________________________________________________________________________________________________
>  
>
>
> CONFIDENTIALITY NOTICE:  This message is the property of International 
> Game Technology PLC and/or 
> its subsidiaries and may contain proprietary, confidential or trade secret 
> information. 
> This message is intended solely for the use of the addressee. If you are 
> not the intended recipient 
> and have received this message in error, please delete this message from 
> your system. Any unauthorized 
> reading, distribution, copying, or other use of this message or its 
> attachments is strictly prohibited. 
>
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1b62e098-9130-4ea8-acd9-657b6aae5f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to