# Help for find mistake

**URL:** <https://forum.ansible.com/t/help-for-find-mistake/19007>\
**Category:** Ansible Project\
**Created:** [August 13, 2015, 12:39am UTC](https://forum.ansible.com/t/help-for-find-mistake/19007 "2015-08-13T00:39:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://forum.ansible.com/u/Alejandro)\
**Post date:** [August 13, 2015, 12:39am UTC](https://forum.ansible.com/t/help-for-find-mistake/19007/1 "2015-08-13T00:39:16Z")

</div>

Hi All,

I’m setting this into roles/test/defaults/main.yml

`domain: template: "{{ mw_home }}/wlserver_10.3/common/templates/domains/wls.jar" override: true name: "superduper_domain" home: "{{ oracle_base }}/domains/{{ domain.name }}" passwordPath: "Security/base_domain/User/weblogic"`

But when run the task got this error: (loop error)

`fatal: [172.21.0.6] => Failed to template {{ domain.name }}: Failed to template {{ oracle_base }}/domains/{{ domain.name }}: Failed to template {{ oracle_base }}/domains/{{ domain.name }}: Failed to template {{ oracle_base }}/domains/{{ domain.name }}:....`

My task:

`

- name: create WLST files for domains  
template:  
src: create\_domains.py.j2  
dest: “/tmp/{{ item }}.py”  
owner: “{{ oracle\_user }}”  
group: “{{ oracle\_group }}”  
with\_items: “{{ domain.name }}”  
`

Some advice?

Thanks  
Alejandro

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [August 13, 2015, 1:02am UTC](https://forum.ansible.com/t/help-for-find-mistake/19007/2 "2015-08-13T01:02:42Z")

</div>

home: "{{ oracle\_base }}/domains/{{ domain.name }}"  
^ refers to the same substructure it is defined in, this won't work

---

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://forum.ansible.com/u/Alejandro)\
**Post date:** [August 13, 2015, 2:19am UTC](https://forum.ansible.com/t/help-for-find-mistake/19007/3 "2015-08-13T02:19:59Z")

</div>

Thanks Brian, this was my fear ☹

Regards,  
Alejandro
