sysco-middleware / ansible-role-oracle-weblogic Goto Github PK
View Code? Open in Web Editor NEWAnsible Role: oracle-wls
License: MIT License
Ansible Role: oracle-wls
License: MIT License
Hi everyone,
I had located my jar installer in the files directory (fmw_12.2.1.0.0_wls.jar and fmw_12.2.1.0.0_wls_Disk1_1of1.zip), path of my ansible server
But the next error appears ...
TASK [sysco-middleware.oracle-weblogic : install weblogic] **************************************************************************************************************
fatal: [ansible_host_01]: FAILED! => {"changed": true, "cmd": "java -jar /srv/files/12.2.1/fmw_12.2.1.0.0_wls.jar -silent -responseFile /opt/oraclefmw/wls.rsp >> /tmp/weblogic-installation.log", "delta": "0:00:00.004188", "end": "2017-11-04 18:28:46.774233", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2017-11-04 18:28:46.770045", "stderr": "Error: Unable to access jarfile /srv/files/12.2.1/fmw_12.2.1.0.0_wls.jar", "stderr_lines": ["Error: Unable to access jarfile /srv/files/12.2.1/fmw_12.2.1.0.0_wls.jar"], "stdout": "", "stdout_lines": []}
to retry, use: --limit @/home/centos/Ansible/playbooks/weblogic/playbook.retry
Thanks for your help.
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
- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.