# Why can't I access the localhost when i use a EE

**URL:** <https://forum.ansible.com/t/why-cant-i-access-the-localhost-when-i-use-a-ee/8678>\
**Category:** Get Help\
**Tags:** ansible-navigator, ee\
**Created:** [September 21, 2024, 10:43pm UTC](https://forum.ansible.com/t/why-cant-i-access-the-localhost-when-i-use-a-ee/8678 "2024-09-21T22:43:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keyzer\_Suze](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/keyzer_suze/32/4833_2.png) [@Keyzer\_Suze](https://forum.ansible.com/u/Keyzer_Suze)\
**Post date:** [September 21, 2024, 10:43pm UTC](https://forum.ansible.com/t/why-cant-i-access-the-localhost-when-i-use-a-ee/8678/1 "2024-09-21T22:43:25Z")

</div>

Hi

Working through the early doco on ansible

[https://docs.ansible.com/ansible/latest/getting\_started\_ee/run\_execution\_environment.html](https://docs.ansible.com/ansible/latest/getting_started_ee/run_execution_environment.html)

basically using the community min build EE

gather facts and displaying them about all of the hosts.

I can get local host - which is the pod and I can get remote hosts, but I can’t get the localhost

in my hosts file I have the local host by name - which corrosponds to the 127.0.1.1 address from /etc/hosts - this might be the issue !

I can get into the pod with (I’m new to pods as well)

```auto
podman run -ti --name a --hostname aaa --network host ghcr.io/ansible-community/community-ee-base:latest /bin/bash

```

when i try ssh - it comes up with hostname warning - strangely when i run

```auto
ansible-navigator run test_remote.yml -i hosts --execution-environment-image http://ghcr.io/ansible-community/community-ee-minimal:latest --mode stdout --pull-policy missing

```

I don’t get the ssh warning i presume thats anisible doing something to ignore warning.

this is test\_remote

```auto
- name: Gather and print local facts
  hosts: all, !deblaptop1
  become: true
  gather_facts: true
  vars:
    ansible_python_interpreter: auto_silent
  tasks:

   - name: Print facts
     ansible.builtin.debug:
      var: ansible_facts

```

I explicitly remove deblaptop1 the host

how can I debug this ?

---

<div class="post-metadata">

**Author:** ![Andersson007](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/andersson007/32/89_2.png) [@Andersson007](https://forum.ansible.com/u/Andersson007)\
**Post date:** [September 23, 2024, 6:00am UTC](https://forum.ansible.com/t/why-cant-i-access-the-localhost-when-i-use-a-ee/8678/2 "2024-09-23T06:00:41Z")

</div>

@Keyzer_Suze hello, if i understand the question correctly you can’t access the machine you run the EE on, correct?  
If yes, I don’t know if there’s a better option, i would use its regular IP (not the loopback one), resp if it’s your laptop you need to have SSH running on it same as on your target hosts, i.e. it’ll be treated as a regular target host.
