Missing interpreter of module (setup)

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.

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