Comments (7)
Hi there, can you please copy and paste your custom_was fact file?
I'm struggling to pull any WebSpere facts in ansible and awx
Appreciate the help
from awx-container.
Or if you can please explain to me how you generated the facts for wasProfile and environment name?
Regards
Pieter
from awx-container.
Hi
Websphere Facts is created manually !
Exp :
`root@s00vl9970627:/root# cat /etc/ansible/facts.d/custom_was.fact
####### Variable d'environnement DEV #######
[Application]
codeEnv=07327-odq00
[UserGroup]
user=was
group=web
user1=cft
group1=cft
path1=/apps/cft
shell=/bin/ksh
[FileSystemDev]
vg_name2=rootvg
lv_sys01=lv_toolboxes
fs_sys01=/apps/toolboxes
sys_size=4G
lv_sys02=lv_lisa
fs_sys02=/apps/LISA
vg_name=vg_apps
log_was_lv_prez=lv_przLog01Dev
log_was_fs=/applis/logs/07327-odq00
var_was_lv=lv_prz01Dev
var_was_fs=/applis/07327-odq00
fs_size=2G
var_cft_lv_in=lv_prz02Dev
var_cft_fs_in=/applis/07327-odq00/transfert/in
var_cft_lv_out=lv_prz03Dev
var_cft_fs_out=/applis/07327-odq00/transfert/out
[DirectoryDev]
was=/applis/07327-odq00/was
shared=/applis/07327-odq00/was/shared
serverDir=/applis/07327-odq00/was/sa-07327_odq00-prez-1
installedApps=/applis/07327-odq00/was/sa-07327_odq00-prez-1/installedApps
conf=/applis/07327-odq00/was/sa-07327_odq00-prez-1/conf
temp=/applis/07327-odq00/was/sa-07327_odq00-prez-1/temp
jdbc=/applis/07327-odq00/was/sa-07327_odq00-prez-1/jdbc
lib=/applis/07327-odq00/was/sa-07327_odq00-prez-1/lib
archives=/applis/07327-odq00/was/sa-07327_odq00-prez-1/archives
installedAppsArchives=/applis/07327-odq00/was/sa-07327_odq00-prez-1/archives/installedApps
confArchives=/applis/07327-odq00/was/sa-07327_odq00-prez-1/archives/conf
jdbcArchives=/applis/07327-odq00/was/sa-07327_odq00-prez-1/archives/jbdc
libArchives=/applis/07327-odq00/was/sa-07327_odq00-prez-1/archives/lib
libraray=/home/was/wasLibrary
serverLog=/applis/logs/07327-odq00/was/sa-07327_odq00-prez-1
ihs=/applis/07327-odq00/ihs
webServerSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl
pluginSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/plugin
confSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/conf
htdocsSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/htdocs
sslSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/ssl
archivesSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/archives
htdocsArchiveSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/archives/htdocs
confArchivesSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/archives/conf
sslArchivesSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl/archives/ssl
logSsl=/applis/logs/07327-odq00/ihs/sw-07327_odq00-prez-1-ssl
webServerNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl
pluginNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/plugin
confNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/conf
htdocsNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/htdocs
archivesNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/archives
htdocsArchiveNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/archives/htdocs
confArchivesNoSsl=/applis/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl/archives/conf
logNoSsl=/applis/logs/07327-odq00/ihs/sw-07327_odq00-prez-1-nossl
[serverEnvDev]
code_application=07327-odq00
admwasProfile=/apps/WebSphere85S/profiles/svr
serverName=sa-07327_odq00-prez-1
startingPort=51040
busName=QuerasBusDev
jmsCFName=QuerasExportsQCF
jmsCFJNDI=jms/QuerasExportsQCF
queueDestinationName=QuerasExportsDestination
jmsQName=QuerasExportsQueue
jmsQJNDI=jms/QuerasExportsQueue
activationSpecName=QuerasActivationSpecs
activationSpecJNDI=jms/QuerasActivationSpecs
virtualHostname=sa-07327-odq00-prez-1_vh
url=url.echonet.fr
authAlias=authAliasDev
authAliasUser=RCE_P
authAliasPassword=RCE_P
dataSourceName=ODQ1WDD1_DS
dataSourceJndi=jdbc/ODQ_DS
urlDs=jdbc:oracle:thin:@wxxxxx:1521:ODQ1WDD1
schedulerName=QuerasScheduler
contextRoot=queras
maxfilesize=10
maxfiles=10
[ihsEnvDev]
WebNoSecPort=10080
WebSecPort=10443
webServerNameNoSsl=sw-07327_odq00-prez-1-nossl
webServerNameSsl=sw-07327_odq00-prez-1-ssl
adminPort=8008
adminUserID=admin
adminPasswd=admin
webInstallRoot=/apps/WebSphere85S/WebServer
[certificat]
keyFile=someFile.kdb
stashFile=someFile.sth
`
from awx-container.
Thanks for the reply.
Do you have a fact file for each environment? One for dev, tst, ppe and prd?
How did you call the fact file from AWX?
Thanks for the help?
from awx-container.
Yes
one Fact for one env
from awx-container.
I tried what you did, but my facts are not printing
TASK [print ansible_local] *************************************************************************************************************************
task path: /etc/ansible/pp.yml:9
ok: [srv005168] => {
"ansible_local": {
"custom_was": {}
}
}
And I have only the below in my custom_was.fact file:
[Application]
codeEnv=07327-odq00
Any idea why this will be?
from awx-container.
I'm thinking this would be better to work through on the AWX issue queue, or elsewhere, since this doesn't look specific to this AWX setup, but rather an issue configuring jobs/playbooks/vars within AWX.
from awx-container.
Related Issues (20)
- no IPv6-support in awx_task HOT 1
- Switch to official AWX container versions from Ansible in example Docker Compose
- Travis CI builds failing on 'Stage sdist' task with AWX 1.0.3.52 HOT 4
- Getting "Exception: Missing or incorrect metadata for Tower version." HOT 6
- Discussion: Migration Paths for AWX HOT 3
- No proper login page after first docker-compose up HOT 4
- Q: is it possible to build lxd into the container? HOT 2
- What's the trick to upgrade Ansible? HOT 1
- Vagrant build fails at task EPEL repo installation HOT 2
- Build failing due to moved Dockerfile templates HOT 1
- Ansible Container 0.9.2 is here, update docs and tests
- Run awx_web and awx_task not as root? HOT 2
- Getting error in Travis CI build 'ordereddict is not JSON serializable' HOT 1
- No Job view HOT 1
- Helm chart for awx HOT 3
- Dockerfile for awx_task? HOT 1
- docker-compose up fails HOT 21
- awx start to consume swap memory after running jobs HOT 1
- geerlingguy.repo-epel error HOT 1
- This project is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-container.