Module Defaults + ansible-lint

Folks - I was wondering if anyone has come up with a working solution to using both the module_defaults feature and ansible-lint? I’ve been following this issue for a while now, and seen no progress/updates (other than bumps) in quite a while.

The issue is that if you set module_defaults rather than provide (for example) the same connection information to a half dozen tasks in a row, ansible-lint will throw errors about missing required arguments (because its not seeing them in the module_defaults section). This means, at least as far as I can tell, that you can’t use this feature while also doing linting of even the most basic of files without disabling test.

ansible-lint