Custom inventory file failing to parse properly
The keyword hosts is missing. Also colons : are needed after the hostnames. Fix the syntax, for example
all:
  children:
    control:
      hosts:
        moriarty.server.com:
        toby.server.com:
    managed:
      hosts:
        sherlock.server.com:

See How to build your inventory.