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


On Monday, 14 September 2015 17:50:06 UTC+5:30, Irfan Sayed wrote:
>
> 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
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/25dd44a9-0fa6-4d02-80d0-2ab2d790601e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to