Добавить строку в файле YAML с помощью SED

sed -i "/callbacks:$/a\
\    - 'https://d1.example.com/callback'" a.yaml
Different Deer