Flow Designer need to integrate

nupur_goswami
Tera Contributor

Hi everyone,

 

I have a requirement :

Need to add payload and ansible AAP template API.
Need to add 3 new catalog tasks
1. Stop Tomcat Instances
URL: https://controller.aapbmylc6irzyfx6.ansiblecloud.redhat.com/api/v2/job_templates/1013/launch/
Payload:
{
"FQDNHostname": <Server_Name>,
"Task": <Task Name>
"ServiceNowEnv": <Env>
}
2.. Upgrade Java jdk to latest version
URL: https://controller.aapbmylc6irzyfx6.ansiblecloud.redhat.com/api/v2/job_templates/1016/launch/
Payload:
{
"FQDNHostname": <Server_Name>,
"Task": <Task Name>
"ServiceNowEnv": <Env>
}
3. Start Tomcat Instances
URL: https://controller.aapbmylc6irzyfx6.ansiblecloud.redhat.com/api/v2/job_templates/991/launch/
Payload:
{
"FQDNHostname": <Server_Name>,
"Task": <Task Name>
"ServiceNowEnv": <Env>
}

 

 

Every step should be executed at 3 different tasks; I have made the flow but not sure how to incorporate the above requirements here. Please suggest.

4 REPLIES 4

J Siva
Kilo Patron
Kilo Patron

Hi @nupur_goswami 
Are you using Ansible Spoke?
If yes, then you can use the "Launch Job Template" Soke action to trigger the ansible jobs.
Chec out the below doc for more details..
https://www.servicenow.com/docs/bundle/xanadu-integrate-applications/page/administer/integrationhub-...
Regards,
Siva

nupur_goswami
Tera Contributor

Hi @J Siva 

No I am not using Ansible spoke

 

@nupur_goswami 
Then please check with your Ansible team to share the API, credential information to trigger the job using REST action.

nupur_goswami
Tera Contributor

@J Siva  we already have the connection and credentials to Ansible