conditional execution of playbook based on exit status of the command module?
<p>I am trying to write a playbook which would execute some tasks only if a certain package is installed on the hosts. </p>

<p>Is it possible to register the output from a command module and run the tasks depending upon the exit status of the command ? </p>

<p>Something like this: 
<a href="https://i.stack.imgur.com/KjCer.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KjCer.png" alt="play tasks "></a></p>