Help for find mistake

21 views
Skip to first unread message

Alejandro Ferrari

unread,
Aug 12, 2015, 8:39:16 PM8/12/15
to Ansible Project
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

Brian Coca

unread,
Aug 12, 2015, 9:02:50 PM8/12/15
to Ansible Project
home: "{{ oracle_base }}/domains/{{ domain.name }}"
^ refers to the same substructure it is defined in, this won't work



--
Brian Coca

Alejandro

unread,
Aug 12, 2015, 10:20:07 PM8/12/15
to ansible...@googlegroups.com
Thanks Brian, this was my fear :( 

Regards,
Alejandro


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/T2FaPss_5AY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8n64TAZnN7in95LPu5s7H9x2mDQcbjtx6kgwJsp6qE4tQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages