you already have a play_hosts variable with the 'current active hosts' in the play, but it will be reset every play.
In this case I would just rewrite the play to use: with_items: groups['all'] -- 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%2BHsxi1Xc2-BPmxfese12yCrWviigwXS7XsMPxbCM6ey%2BoOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
