Ansible newbie alert !

I am upgrading from 1.9 to 2.4. A play that works fine in the former throws 
up the error:


*recursive loop detected in template string: {{ service_down | default(1) 
}}"}*

The last lines in the following two files are of relevance.

Here is one of the plays that includes "application.yml" and seems to be 
causing the error:

___________________________________________________________________________________________________________
cat application-altfund.yml

- name: "Application: altfund"
  include: application.yml
...
...
...
           
           service_userok=1
           service_mail=
           service_down={{ service_down | default(1) }}
___________________________________________________________________________________________________________

And here is the application.yml:

___________________________________________________________________________________________________________
cat application.yml

- name: Application Service (service {{service_name}} activation using 
svctl and templates)
  shell: >
           svctl add
...
...
...
           --svctype-options={{service_options[service_name | 
hyphens_to_underscores] | default(service_options_default) | quote}}
           $([ {{service_userok}} -eq 1 ] && echo --userok)
           $([ {{service_down}} -eq 1 ] && echo --down)
___________________________________________________________________________________________________________

What is the least messy way to fix this problem? There are more than 100 
files like the first one which include application.yml.

Thanks in advance !

Sesh

-- 
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/3a766167-0a77-4764-a451-73304526372e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to