HI Team,
I have the Jboss startup script to be triggered by Ansible for my BAU activities.
startup script starts: Host controller, Process controller, and Server groups. When i run the script locally, its working fine, But when i trigger it from Ansible its not starting the instances.
Play book step as below:-
- hosts: uat_hosts
become: yes
become_user: jboss
tasks:
-
name: stop the Host controller and server group
shell: “/home/jboss/bin/stopApplePAY-JVM.sh”
tags: stop-hc-jvm -
name: start the Host controller and server group
shell: “nohup /home/jboss/bin/startApplePAY-HC.sh 1>/dev/null 2>&1”
tags: start-hc-jvm
Note:- Playbook execution is successful, But its not starting the instances, I have tired adding sleep in the startup script, but did not help. Tried async option in the Play book, no luck.
Startup script as below:-
$cat startApplePAY-HC.sh
/opt/applepayuat-jboss6/jboss-eap-6.2/bin/domain.sh -P file:///apps/applepay-jboss6/jboss-eap-6.2/domain/configuration/domain.properties >/dev/null 2>&1 &
Note:- The above script will start totally 6 Jboss java process.
Please some one help if you fix for this. Thank you …!
Tnx
Surya