Brian,

It is true that I shouldn't hit the debug. In my example I forgot to remove 
the failed_when statement.
If removed I still get the Hello World. No matter what I debug. 
stdout,err,rc...
I'm not quite sure if a shell commando would work:
  name: Check to see if the tomcat instance already exists
  shell: find /usr/local/tomcat/instances -name "{{ tomcat_instance_name}}"
  register: output

However this still gives "Hello World" when debugged. 
Am I missing something?

On Tuesday, February 10, 2015 at 1:22:56 PM UTC+1, Brian Coca wrote:
>
> If you fail on file, that host should not hit the debug task below. 
> You can instead use the 'fail' module or set ignore_errors: true if 
> you need to do things afterwards. I'm not sure where you are getting 
> 'hello world' from. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/131df9f3-98df-4f47-9df3-6e62ad92cfe7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to