# AWX on top of existing ansible host

**URL:** <https://forum.ansible.com/t/awx-on-top-of-existing-ansible-host/29700>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 18, 2019, 6:02pm UTC](https://forum.ansible.com/t/awx-on-top-of-existing-ansible-host/29700 "2019-02-18T18:02:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adpavlov](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adpavlov/32/10205_2.png) [@adpavlov](https://forum.ansible.com/u/adpavlov)\
**Post date:** [February 18, 2019, 6:02pm UTC](https://forum.ansible.com/t/awx-on-top-of-existing-ansible-host/29700/1 "2019-02-18T18:02:42Z")

</div>

Dear colleagues,

I recently started exploring AWX and deployed it on the same host where ansible is already installed.  
I mounted my /home/ansible folder on physical server to AWX’s /var/lib/awx/projects and can access my playbooks.  
However, existing playbooks/roles are using magic variables like playbook\_dir, etc.  
For example, when I execute playbook from AWX on physical ansible machine as a target host, magic variables are getting from AWX environment.  
Thus, path is translated from e.g. /home/ansible/packages to /var/lib/awx/projects/ansible/packages, which is obviously not exists in ansible.  
Any advise how can I cheat here?

---

<div class="post-metadata">

**Author:** ![adpavlov](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adpavlov/32/10205_2.png) [@adpavlov](https://forum.ansible.com/u/adpavlov)\
**Post date:** [February 21, 2019, 12:43am UTC](https://forum.ansible.com/t/awx-on-top-of-existing-ansible-host/29700/2 "2019-02-21T00:43:45Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [February 21, 2019, 8:34am UTC](https://forum.ansible.com/t/awx-on-top-of-existing-ansible-host/29700/3 "2019-02-21T08:34:02Z")

</div>

The way you call playbooks is through projects then templates.
