# Playbook against multiple hosts in diffrent AD domains

**URL:** <https://forum.ansible.com/t/playbook-against-multiple-hosts-in-diffrent-ad-domains/33425>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [July 17, 2020, 6:06pm UTC](https://forum.ansible.com/t/playbook-against-multiple-hosts-in-diffrent-ad-domains/33425 "2020-07-17T18:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chr00ted](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chr00ted/32/2188_2.png) [@chr00ted](https://forum.ansible.com/u/chr00ted)\
**Post date:** [July 17, 2020, 6:06pm UTC](https://forum.ansible.com/t/playbook-against-multiple-hosts-in-diffrent-ad-domains/33425/1 "2020-07-17T18:06:07Z")

</div>

Hey all, I have been using a playbook to update host groups. Once I’m done running it against one group of hosts, I change the hosts: entry and run it against the next set of hosts. All of my vars are saved in /etc/ansible/group-vars  
Like I said I have (3) different Windows AD domains (none are trusted by the other) and some stand-alone windows hosts (WORKGROUP) so I have a group var for each.  
I would really like to run this play book against all hosts with different tags for certain groups. Could this be accomplished by specifying the hosts as inventory and looping back through the playbook for each or create a role which imports the playbook for each?

Any help is appreciated

Below is the playbook used.In the playbook, there are tags for either rebooting or no reboots:
