You can also place them in a directory named library/ next to your
playbooks- this is usually the way I tell people to do it, so your modules
can be versioned alongside your content.
The .py doc file is not required anymore (it was at one point), but
strongly encouraged so that ansible-doc
You should just be able to put your custom modules in your
/etc/ansible/library folder and they will become available to your
playbooks.
I think you have to have a module_name.ps1 and a module_name.py in
/etc/ansible/library (the .py file is just used for documentation, but I
think ansible