# Missing interpreter of module (setup)

**URL:** <https://forum.ansible.com/t/missing-interpreter-of-module-setup/26669>\
**Category:** AWX Project\
**Created:** [February 6, 2018, 6:26am UTC](https://forum.ansible.com/t/missing-interpreter-of-module-setup/26669 "2018-02-06T06:26:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leima2046](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@leima2046](https://forum.ansible.com/u/leima2046)\
**Post date:** [February 6, 2018, 6:26am UTC](https://forum.ansible.com/t/missing-interpreter-of-module-setup/26669/1 "2018-02-06T06:26:38Z")

</div>

Hi,

Anybody has ideas about this issue? It’s a very simple playbook.

{“failed”: true, “msg”: “module (setup) is missing interpreter line”}

It happens even with a very simple playbook like below.

- hosts: localhost

gather\_facts: no

vars:

ansible\_python\_interpreter: /usr/bin/python

tasks:

- setup:

- debug: msg = “Hostname is {{ ansible\_hostname }}”

Thanks.

---

<div class="post-metadata">

**Author:** ![jmitchel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jmitchel/32/10148_2.png) [@jmitchel](https://forum.ansible.com/u/jmitchel)\
**Post date:** [February 6, 2018, 3:20pm UTC](https://forum.ansible.com/t/missing-interpreter-of-module-setup/26669/2 "2018-02-06T15:20:00Z")

</div>

Hey Lei Ma,

Not 100% sure, but if you are using AWX executor of the playbook, I don’t think you should pass it ansible\_python\_interpreter variable.

As far as playbook debugging go, this list is not really for that (more AWX-specific issues). You would probably have a prompt answer to this question if you post on the #ansible IRC channel.

Thanks!  
John
