sysco-middleware / ansible-role-oracle-weblogic

Ansible Role: oracle-wls
MIT License
10 stars 9 forks source link

fatal: oracle_soa_oracle_home' is undefined" #5

Open drgeb opened 8 years ago

drgeb commented 8 years ago

I followed the README and overall all went well but I had to do to manual steps. First fix the JAVA_HOME and PATH vairable for the user oraclefmw. I did this by modifying the global bashrc file located at /etc/bashrc added the following two lines

export JAVA_HOME=/usr/java/jdk1.8.0_74 export PATH=${JAVA_HOME}/bin:${PATH}

Then I reran ansible and I got:


< TASK [sysco-middleware.oracle-weblogic : lineinfile] >


    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

fatal: [default]: FAILED! => {"failed": true, "msg": "'oracle_soa_oracle_home' is undefined"} to retry, use: --limit @oracle-retailapps.retry


so I set the variable oracle_soa_oracle_home in my yml ansible script so the role looked something like the following

INSTALL MIDDLEWARE

- role: sysco-middleware.oracle-weblogic
  oracle_weblogic_version: 12c
  oracle_weblogic_release: 12.2.1
  oracle_weblogic_quick_installation: yes
  oracle_weblogic_install_type: Complete with Examples # WebLogic Server, Coherence, Complete with Examples
  oracle_wls_installers_12_2_1_1of1: /srv/files/fmw_12.2.1.0.0_wls_quick.zip
  oracle_weblogic_jar: /srv/files/fmw_12.2.1.0.0_wls_quick.jar
  oracle_soa_oracle_home: /opt/oraclefmw/product/oracle_home

So question is should you set the value so it has this by default or just remove the fix-wlst-securerandom-12c.yml type script ?

I am not sure what the fix-wlst-securerandom-12c.yml does so not sure if its needed since seems to be related to SOA.

Thanks

jeqo commented 8 years ago

Hi @drgeb, Thanks to point this issues.

Should be solved with this commit: ec2783a784791028617def49dd3142b1480b42c8

This script adds a param to avoid slowlyness when you run WLST in Docker or new VMs: http://davidkerwick.blogspot.pe/2014/03/really-slow-wlst-and-adminserver-start.html

Let me know if its working now to close this issue