I am trying to setup Ansible playbook for tomcat application deployment. Apart from starting tomcat everything works without any issues. When i use startup.sh it works but i need to start tomcat with catalina.sh script.
- name: start tomcat
command: ./bin/catalina.sh start
args:
chdir: /websrv/tomcat/tomcat-8080/
This is what i am trying to do, it says started but it was never started.
TASK [start tomcat] ************************************************************
changed: [appserver.example.com]
Please help.
Note: I am using zipped version of tomcat on centos and have not installed tomcat. So if anyone shed light on how to start the script it would be really helpful.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…