Mock + Ansible = ansible-mockable

Do you share same frustration I have when developing Ansible content that there is no way to “mock” results of Ansible modules? You also do not want to wait while Ansible is running modules your are not interested in, and you just want to mock them and jump to one step where you are working at the moment.

Do you want to test how your Ansible content behaves when something goes wrong, but you do not want to trash your test host?

There is an Ansible collection I am working on that will allow to mock results of Ansible modules without actually executing them. For instance you will be able to simulate failure and see how your playbook or role behaves.

Collection is almost ready, If you are interested to try I will be very grateful for any feedback.

Please let me know your github handler, so I will add you to private repo to try.

Can you share the collection to mrinmayk?

I’ve added you, please look for invite in your inbox.