On 13. aug. 2017 12:55, Sameer Modak wrote:
But what if i want to grep days from output and then write condition on it.
Is it possible.

Now it will not possible for most of the thing to have direct
implementation. Hence can we grep >100 days from output and then restart.

You could always use
  when: result.stdout | search('[0-9]{3,} days')


--
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 [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/bf8d52b6-4e63-ff34-f08f-a1ff7e0e1d83%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to