I’m reposting this on here from the github issue (https://github.com/ansible/ansible/issues/4615)
The existing module should be extended to transparently fallback to using the client directly. This is typically done with some try/except blocks at the top of the file which set flags for later use - dig around in some of the other modules for examples.
See also the module development page on the main docs site too!
– Michael