here's a great explanation provided in this link
(it's for ansible config, but formatting rules mostly apply because they both use yml files)