tomcat is not getting started using ansible

24 views
Skip to first unread message

Irfan Sayed

unread,
Sep 14, 2015, 8:20:06 AM9/14/15
to Ansible Project
Hi,

I am learning ansible. i have download the standalone tomcat example : https://github.com/ansible/ansible-examples/tree/master/tomcat-standalone.
i am able to successfully deploy the tomcat/java and other tasks.
however, tomcat service is not getting started through ansible. Though, manually i can start tomcat.

i am not getting what is the issue? i have verified other issues like permission, firewall, iptables etc but no luck .
but, still i am facing the issue. 

i have taken the latest code of this tomcat module. 
ansible version: ansible 1.9.2

please suggest. i am stuck

Regards
Irfan
 

Athul

unread,
Sep 22, 2016, 12:37:37 PM9/22/16
to Ansible Project
By changing the started to restarted in the task file make the problem go away.

Before:
- name: Start Tomcat
  service: name=tomcat state=started enabled=yes

After:
- name: Start Tomcat
  service: name=tomcat state=restarted enabled=yes
Reply all
Reply to author
Forward
0 new messages