# Adding hostnames in AWX with inventory sync

**URL:** <https://forum.ansible.com/t/adding-hostnames-in-awx-with-inventory-sync/3581>\
**Category:** Get Help\
**Tags:** gcp, awx, ansible-core\
**Created:** [February 2, 2024, 10:03am UTC](https://forum.ansible.com/t/adding-hostnames-in-awx-with-inventory-sync/3581 "2024-02-02T10:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anitha-1599](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anitha-1599/32/1636_2.png) [@Anitha-1599](https://forum.ansible.com/u/Anitha-1599)\
**Post date:** [February 2, 2024, 10:03am UTC](https://forum.ansible.com/t/adding-hostnames-in-awx-with-inventory-sync/3581/1 "2024-02-02T10:03:32Z")

</div>

I am trying to add a source in inventory sync to fetch hostnames from the GCP console.  
After fetching hostnames and running a job template, it is failing with an unreachable error, however, it works with IP.  
How can I make a hostname to work with ssh while running the job?
