As a Windows admin moving into Linux, I'm trying to streamline my configuration process for servers, particularly with Ansible. I often wonder whether I should delete any existing configuration files in directories like /etc/ssh/sshd_conf.d/ or if I should simply create my own files with a higher precedence, like naming them zz-filename.conf. What's the best practice here?
1 Answer
It's generally a good idea to lower precedence files and let the default settings sit. This way, you preserve the distro's default configurations unless you really need to customize something from scratch, which isn't usually necessary. Plus, it simplifies automated configuration management!

Exactly! Keeping your main config file cleaner and using separate files for each host in a conf.d directory is a breeze. It really makes management easier.