Ah excellent! Thanks for the assistance!

On Thursday, November 3, 2016 at 4:45:02 PM UTC-5, Kai Stian Olstad wrote:
>
> On 03. nov. 2016 21:27, burn...@umn.edu <javascript:> wrote: 
> > Hello - I am working through some seemingly inconsistent results for 
> regex 
> > search results in where clauses. 
> > 
> > I'm trying to take actions when stdout contains a certain regex pattern. 
> I 
> > have one method using shell module, and now testing using a preferred 
> > expect module that I'm trying to get to work. The shell method properly 
> > logs based on the when-search conditional. The expect skips the same 
> > conditional, despite writing output for the same script. Below I have 
> > pasted the play, code, and both outputs for reference. 
>
> The expect output is not the same as you get from shell,  line ending in 
> expect output is \r\n. 
>
> The best way to check the output is using debug module right after the 
> expect task like so 
>
> - debug: var=expect_output 
>
> and then adjust your regex accordingly. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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/2a3eafce-5aca-4e6c-b42e-d02fadf4e49c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to