YAML is like Regex in the "Now you have two problems" philosophy.
It's like using an XML file for what a txt file could do.
It demands frankly unnecessary structure and formatting just to be ingested, when it's all serially-read parameters, anyway.
YAML isn't the only way to implement parameterization. We could use our imaginations and think of a ton of tried-and-true ways to abstract it.
Have you ever done a quick-deploy on a cloud platform? The alternatives just generate all the esoteric stuff for you. Config files generated by guided steps.
How do you roll back a bad config ?