it is not supposed to work at all. ​which host or group would it look at to set the hosts?
you might want to look at group_by to do dynamic groups based on variables that can be used in subsequent plays (in same run). -- 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/CADn%2BHsz-UGtZ7aT5am6Aa5QxDkpHdxL6h4FMi2FuGNewn1b8_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
