Keep running playbook only if package is installed

Hi…yes it is me again…

So I was trying to stop a playbook or skip part of it if a package was not installed, in this is case is a playbook for mac.

this is my playbook base on the conditional task execution :

Only if will print "skipped" already when skipping tasks, might this be sufficient?

-- Michael

Mmm I guess.

I just wanted to be more specific for the user that is not familiar to ansible.

Thanks.

You could write a callback, there is an on_skipped function available.

-- Michael

There is any doc where you can point me at so I can see some example of it ?

Thanks.

See the ansible-plugins repo for a couple of working examples.

– Michael

Thanks again