I do have a playbook which tooks a specific group and put all hosts of this group into a command on another host.
like .. put all hosts from {{ groups[\'servers\'] }}