hostvars in actions.

I'm not sure if I have found a bug or I am misunderstanding the documentation. It may be related to the problem discussed in the "include variables in tasks" thread from the other day.

Under "Accessing Information About Other Hosts" is says...

"If your database server wants to check the value of a ‘fact’ from another node, or an inventory variable assigned to another node, it’s easy to do so within a template or even an action line..."

Getting a hostvars variable to resolve on an action line has been a problem even working with the latest devel as of around 1PM EST. Can a hostvars variable be used in an action like below? Is my syntax correct?

- name: Echo 2
action: command /bin/echo ${hostvars.localhost.ansible_system}

This is "supposed" to work, but recent tweaks have changed the way that is passed around, I'll see what I can do.

Fixed.