group_vars/ are loaded AFTER -hosts: so you cannot use them to set the hosts, you can do this using extra vars though:
ansible-playbook ... play.yml ... -e 'monitor_group=<hostname>' -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mfoAi5rZCeAgZp-oZwy0k-S%3DFEwmwtFC1-YmMKEyA6aw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
