Best Way to Update gitlab.rb

From what I’ve read any update to Gitlab CE does not update the gitlab.rb config file. There’s a pretty huge difference between the current gitlab.rb.template and the version we have installed. Is there any scripted way or tools to update this config file, while taking into account existing important settings?

I been using ansible and use templates/jinja2 to deploy and keep track of important changes.