title: JINJA2+ANSIBLE SYNTAX ERROR
body: <p>I have a long JINJA2 file used to deploy Elastic application over a set of servers.</p>
  
  <p>The Ansible task to deploy the application is working fine, but task to deploy the application config file is failing and returning the error message below:</p>
  
  <blockquote>
    <p>fatal: [HOSTNAME.ACME.COM] =><br>
    {'msg': "TypeError: argument of type 'StrictUndefined' is not iterable", 'failed': True}</p>
  </blockquote>
  
  <p>I really believe that there is an error in the JINJA2 file, but was not able to find it out so far.</p>
  
  <p>Could someone help me?</p>
  
  <p>Thanks.</p>