add support for node group templating
use 'hosts' list instead of 'nodes'