Planning and what to keep in mind
The Ansible Developer Guide has a section on how should you develop a module (http://docs.ansible.com/ansible/latest/dev_guide/developing_modules.html#should-you-develop-a-module).
In the section, they have multiple points on what to keep in mind before going ahead and developing a module.
Does a similar module already exist? It's always a good idea to check the current modules to see whether what you plan to build has been done before. The good news is, so far nobody has built an Open Web Application Security Project (OWASP) Zed Attack Proxy (ZAP) module.
Has someone already worked on a similar Pull Request? Again, maybe the module hasn't been published but that doesn't mean that folks are not working on it already. The document provides three convenient links to check if a similar PR is already in place.
Additionally, it asks if rather than a module, we should look at an action plugin or role. The main reason we think it makes sense for us to develop the...