Closed ltalirz closed 2 years ago
Code duplication reduced in f2157815bcc5fee4a7361269b4c0e2c4156f5552
It's possible that one could/should still replace some functionality with ansible's module_utils
Not going to continue along this route for the moment. Happy to reopen if someone wants to pick this up.
Make use of module_utils/ -- they’re your friends
– basic.py – api.py – facts/ – urls.py – six.py – noteworthy others: ec2.py, docker.py, database.py, mysql.py, powershell.ps1 — and many many more
See also ansible docs
Besides reusing functionality provided by ansible, there is also a ton of code duplication in the
dokku_
modules, i.e. the first step would be just to remove that.