Coder Social home page Coder Social logo

Comments (7)

tidypete avatar tidypete commented on June 30, 2024

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.

tidypete avatar tidypete commented on June 30, 2024

Or if you can please explain to me how you generated the facts for wasProfile and environment name?

Regards

Pieter

from awx-container.

blueyes666 avatar blueyes666 commented on June 30, 2024

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.

tidypete avatar tidypete commented on June 30, 2024

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.

blueyes666 avatar blueyes666 commented on June 30, 2024

Yes
one Fact for one env

from awx-container.

tidypete avatar tidypete commented on June 30, 2024

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.

geerlingguy avatar geerlingguy commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.