# How to add Linux Host (RHEL 7)  to Windows Active Directory using AWX-

**URL:** <https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905>\
**Category:** AWX Project\
**Tags:** windows, rhel, awx\
**Created:** [April 1, 2021, 9:14pm UTC](https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905 "2021-04-01T21:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [April 1, 2021, 9:14pm UTC](https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905/1 "2021-04-01T21:14:53Z")

</div>

Friends,

Trying to add a RHEL7 host to Windows AD using Ansible-AWX.

Did any body tried this before please share some details.

Please note, I followed the below link and was able to add to AD with a password prompt.  
[https://yallalabs.com/linux/how-to-join-centos-7-rhel-7-servers-to-active-directory-domain-using-ansible/](https://yallalabs.com/linux/how-to-join-centos-7-rhel-7-servers-to-active-directory-domain-using-ansible/)

**Wandering how to fetch the credentials from AWX and add to domain**.

regards  
Vinod

---

<div class="post-metadata">

**Author:** ![John\_Foley](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@John\_Foley](https://forum.ansible.com/u/John_Foley)\
**Post date:** [April 1, 2021, 9:16pm UTC](https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905/2 "2021-04-01T21:16:45Z")

</div>

I created a customer credential for joining to AD. Another option is create a keytab that can join a computer and transfer that over.

---

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [April 1, 2021, 9:27pm UTC](https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905/3 "2021-04-01T21:27:06Z")

</div>

Thanks John,.

---

<div class="post-metadata">

**Author:** ![Vinod\_P](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@Vinod\_P](https://forum.ansible.com/u/Vinod_P)\
**Post date:** [April 1, 2021, 9:46pm UTC](https://forum.ansible.com/t/how-to-add-linux-host-rhel-7-to-windows-active-directory-using-awx/34905/4 "2021-04-01T21:46:21Z")

</div>

Thanks John, but how did you call the credentials into the yaml file ??

In my scenario i have added domain credentials in AWX “credentials” section . Wandering how to fetch those into yaml script while its running.

Can you share a yaml file that you used for reference.
