VMware: Best Practices - ansible/community GitHub Wiki
Best practices
New modules are already well sanity checked. As existing modules are updated, we expect significant changes to also include meeting of the sanity checks.
Changes for existing modules would be:
- Meet the Module Developer Checklist - https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_best_practices.html
- Pass the Ansible test suite -
- python coding standard
- documentation expectations
- Make better use of built in functions for argument checking
- Have integration tests
- Work with
--check
(check mode). - Have a look at the vmware module_utils and reuse as many of the existing methods there.
- Look at other modules for examples on how to include existing documentation and existing module arguments
- Follow the standard module parameters