Yeah, I'm not really sure if DRYing yourself to death is a good approach to software development. Ansible is really really easy to hack on and it's ~1.2mil LOC which probably horrifies the suckless devs.
I suspect a good deal of that 1.2M lines is in modules, isn't it? Rather like how people remark on how many lines are in Linux and overlook that it's overwhelmingly in drivers and the actual core system is much smaller.