# Beginner: Ansible on OSX module path not found

**URL:** <https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [February 1, 2015, 3:24pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408 "2015-02-01T15:24:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anatol](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Anatol](https://forum.ansible.com/u/Anatol)\
**Post date:** [February 1, 2015, 3:24pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408/1 "2015-02-01T15:24:17Z")

</div>

Hi,

I´ve followed the install [instractions](https://devopsu.com/guides/ansible-mac-osx.html) (via pip) on OSX yosemite.  
Created an ansible\_hosts.txt file

and run successfully:

`  
ansible --ask-pass all -m ping

`

`82.137.158.111 | success >> { "changed": false, "ping": "pong" }`

Trying the next ad-hoc command example:

`ansible --ask-pass all -m "/bin/echo hello"`

ends in :

`  
82.137.158.111 | FAILED =\> module /bin/echo hello not found in configured module paths

`

Where 82.137.158.111 (Ip changed) is an Ubuntu 12.04 Server.

What am I doing wrong?

– Anatol

---

<div class="post-metadata">

**Author:** ![Mark\_Phillips1](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@Mark\_Phillips1](https://forum.ansible.com/u/Mark_Phillips1)\
**Post date:** [February 1, 2015, 5:08pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408/2 "2015-02-01T17:08:59Z")

</div>

Hello Anatol,

You're close 😉 Read over the getting started guide and you'll spot your mistakes. But to help get you going ...

You need to specify -i for that hosts txt file - do a --help to understand the switch.

-m specifies an ansible module - see module documentation at docs.ansible.com, or try ansible-doc -l. I suspect what you wanted to do there to test was -a - which is switches to a given module. If you don't specificy a module with -m it will default to the 'command' module.

Good luck, and welcome to the community!

---

<div class="post-metadata">

**Author:** ![Anatol](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Anatol](https://forum.ansible.com/u/Anatol)\
**Post date:** [February 1, 2015, 5:27pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408/3 "2015-02-01T17:27:10Z")

</div>

> 

Hi Mark,

thanks for your answer!

> You need to specify -i for that hosts txt file - do a --help to understand the switch.

I did this already with

`  
export ANSIBLE\_HOSTS=/path/to/file

`

Which should do the job of -i, right?

> do there to test was -a - which is switches to a given module. If you don’t specificy a module with -m it will default to the ‘command’ module.

Unfortunately the VM where I´me testing is down for cloning right now. But if I´m understanding your answer correctly – and after a look into the module docs I´ve missed the -a switch … will try when the Server is back online.

ansible --ask-pass all -m -a “/bin/echo hello”

Thanks for your help!

- Anatol

---

<div class="post-metadata">

**Author:** ![Anatol](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Anatol](https://forum.ansible.com/u/Anatol)\
**Post date:** [February 1, 2015, 5:33pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408/4 "2015-02-01T17:33:01Z")

</div>

Ahhh tried it on localhost:

`ansible all -a "/bin/echo hello"`

Doing the job … so far so good. Let´s dive into the docu!

Thanks again!
