Can someone help me set ansible up on foreman?

oh you have to be kidding me!

"you need to specify it in Ruby syntax, so for a single host it would be [
myhost.domain.com ]"

Just how was I supposed to work that out?
Its a great product but your fundamental issues, is it is designed and documented by people who assume everyone just “knows”. No wonder it has the reputation it does.

Still I will carry on.