# Upgrade from 1.9 to 2.4 throws "recursive loop detected" error

**URL:** <https://forum.ansible.com/t/upgrade-from-1-9-to-2-4-throws-recursive-loop-detected-error/26715>\
**Category:** Ansible Project\
**Created:** [February 13, 2018, 4:41am UTC](https://forum.ansible.com/t/upgrade-from-1-9-to-2-4-throws-recursive-loop-detected-error/26715 "2018-02-13T04:41:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_Seshadri\_Iyer](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@K\_Seshadri\_Iyer](https://forum.ansible.com/u/K_Seshadri_Iyer)\
**Post date:** [February 13, 2018, 4:41am UTC](https://forum.ansible.com/t/upgrade-from-1-9-to-2-4-throws-recursive-loop-detected-error/26715/1 "2018-02-13T04:41:51Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![jn.bedag](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jn.bedag](https://forum.ansible.com/u/jn.bedag)\
**Post date:** [February 14, 2018, 10:12am UTC](https://forum.ansible.com/t/upgrade-from-1-9-to-2-4-throws-recursive-loop-detected-error/26715/2 "2018-02-14T10:12:31Z")

</div>

Not sure, but maybe you run into this problem: [https://github.com/ansible/ansible/issues/8603](https://github.com/ansible/ansible/issues/8603)

Use a different variable, or what we do:  
group\_vars are in capital letter. Vars within playbooks or roles are in lowercases.

---

<div class="post-metadata">

**Author:** ![K\_Seshadri\_Iyer](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@K\_Seshadri\_Iyer](https://forum.ansible.com/u/K_Seshadri_Iyer)\
**Post date:** [February 14, 2018, 2:25pm UTC](https://forum.ansible.com/t/upgrade-from-1-9-to-2-4-throws-recursive-loop-detected-error/26715/3 "2018-02-14T14:25:01Z")

</div>

Thanks. I renamed the variable.
