# Error when running ansible-playbook

**URL:** <https://forum.ansible.com/t/error-when-running-ansible-playbook/13352>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 22, 2013, 6:20pm UTC](https://forum.ansible.com/t/error-when-running-ansible-playbook/13352 "2013-08-22T18:20:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu\_Levesque-Lav](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mathieu\_Levesque-Lav](https://forum.ansible.com/u/Mathieu_Levesque-Lav)\
**Post date:** [August 22, 2013, 6:20pm UTC](https://forum.ansible.com/t/error-when-running-ansible-playbook/13352/1 "2013-08-22T18:20:45Z")

</div>

I’ve installed Ansible 1.2.3 on Ubuntu Precise 64.

Running `ansible-playbook -i ansible_hosts playbook.yml` give me this error:

```auto
ERROR: problem running ansible_hosts --list ([Errno 8] Exec format error)

```

Here’s the content of `ansible_hosts`:

```auto
[development]
localhost ansible_connection=local

```

and `playbook.yml`:

```auto
---
- hosts: development
  sudo: yes
  tasks:
    - name: install curl
      apt: pkg=curl update_cache=yes

```

How can I make this work?

On StackOverflow: [http://stackoverflow.com/q/18385925/351398](http://stackoverflow.com/q/18385925/351398)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 23, 2013, 1:19am UTC](https://forum.ansible.com/t/error-when-running-ansible-playbook/13352/2 "2013-08-23T01:19:29Z")

</div>

Sounds like your INI file is marked executable and should not be, which is making ansible try to evaluate it as an external inventory script.

If I may make a request, please don’t ask questions on stack overflow and duplicate post them here, there is a infinitely larger community here and it just requires that we duplicate-post the answer and all the conversation, which is somewhat frustrating.

–Michael

---

<div class="post-metadata">

**Author:** ![Mathieu\_Levesque-Lav](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Mathieu\_Levesque-Lav](https://forum.ansible.com/u/Mathieu_Levesque-Lav)\
**Post date:** [August 23, 2013, 1:58pm UTC](https://forum.ansible.com/t/error-when-running-ansible-playbook/13352/3 "2013-08-23T13:58:56Z")

</div>

You were right. It works now.

I will use this group in the future. Also, I will answer with your answer on SO.

Thank you Michael.
