Use the online validator https://www.yamllint.com/ or have one in your local tools to ensure that your Yaml is correct.