# Delegate\_to: localhost is not working as expected

**URL:** <https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995>\
**Category:** Get Help\
**Tags:** gcp, playbook, ansible, awx\
**Created:** [April 24, 2025, 2:30pm UTC](https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995 "2025-04-24T14:30:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![SaravanaSelvaraj](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/saravanaselvaraj/32/2841_2.png) [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Post date:** [April 24, 2025, 4:07pm UTC](https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995/4 "2025-04-24T16:07:50Z")

</div>

Hello @bcoca , thanks for the response , and this is the output

```auto
ansible-inventory --host localhost
[WARNING]: No inventory was parsed, only implicit localhost is available
{
    "ansible_connection": "local",
    "ansible_python_interpreter": "/usr/bin/python3"
}

```

And looks like this is working as expected and getting executed in the localhost. But Can you please help me with the below because it is a blocker as of now for me.

> [@Discrepancy Between Custom Image and AWX Execution Environment](https://forum.ansible.com/t/discrepancy-between-custom-image-and-awx-execution-environment/41993):
>
> Unusual behavior with custom EE. Dear Community, As part of AWX to gcloud connectivity I have built an image which has gcloud utility and set the PATH for the same. Below lines are responsible for the same in my dockerfile. RUN curl -O https://XXX.io/artifactory/ansible-store/google-cloud-sdk-470.0.0-linux-x86\_64.tar.gz && \ tar -xzf google-cloud-sdk-470.0.0-linux-x86\_64.tar.gz && \ ./google-cloud-sdk/install.sh --quiet && \ rm google-cloud-sdk-470.0.0-linux-x86\_64.tar.gz # Add …

---

_[View the full topic](https://forum.ansible.com/t/delegate-to-localhost-is-not-working-as-expected/41995)._
