parse a yaml file for a defined key value