tomcat is not getting started using ansible

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 .
when goggled , i got this : https://groups.google.com/forum/#!topic/ansible-project/wf-UOtPOuKk
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

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