Parsing file, yaml file? Extracting specific sections

Here is a data file, which I believe is in YAML. I am trying to retrieve just the 'addon_domains" section, which doesnt seem to be as easy as I had originally thought. Any help on this would be greatly appreciated!! I have been trying to do this in awk and mostly bash scripting instead of perl or high level scripting language.

This is actually from /var/cpanel/userdata/username/main

---
addon_domains:
  somedomain.com: mysubdomain.primarydomain.com
  somedomain2.com: mysubdomain2.primarydomain.com
  somedomain3.com: mysubdomain3.primarydomain.com
cp_php_magic_include_path.conf: 0
main_domain: primarydomain.com
parked_domains: []

sub_domains:
  - mysubdomain.primarydomain.com
  - mysubdomain2.primarydomain.com
  - mysubdomain3.primarydomain.com

Given a sample input above, what would be the desired output?

If split by :, it would be the first field under addon_domains, until cp_php_magic_include_path.conf: 0 was reached.

somedomain.com
somedomain2.com
somedomain3.com

something along these lines - assuming ''somedomain-s' are indented with spaces.

nawk -f rh.awk myYAMLfile

rh:awk:

BEGIN {
   FS=RS=""
}
$1 == "addon_domains:"{
   for(i=2; $i ~ /^  */; i++)
      print substr($i, 1, index($i, ":")-1)
}