I'm looking for ways to reduce the amount of boiler plate config I have to put into some of my ansible tasks.
For instance I have many tasks using the docker_container
module, and each one has the same ~10 identical options set. I'd like to have these standard options defined somewhere centrally, and each task simply defines only the unique options it needs.
(The problem researching this is that 99.9% of search results on this subject are about the copy/template module itself).
I guess I could write a custom module in python which extends the docker_container module, but that seems really overkill.
Any ideas on reducing boilerplate config?
You can use
module defaults