Help for find mistake

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

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

Thanks Brian, this was my fear :frowning:

Regards,
Alejandro