I'm not sure where you got `hostvars[inventory_hostname]['{{ inventory_hostname }} http_port']` but that does not look like a valid construct
In any case, using: hostvars[inventory_hostname]['http_port'] hostvars[inventory_hostname]['maxRequestsPerChild'] you should be able to access the vars no matter if defined inline in the inventory or in a host/group-vars file, but just use `http_port` and `maxRequestsPerChild` directly, you really only need hostvars when accessing other hosts or trying to compose variable names. -- ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7d_E3se8-JcX2A0PS_in4AOrUPY2QJpKpXtkBxmjjF_OA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.