Missing interpreter of module (setup)

531 views
Skip to first unread message

Lei Ma

unread,
Feb 6, 2018, 1:26:40 AM2/6/18
to awx-p...@googlegroups.com
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.

John Mitchell

unread,
Feb 6, 2018, 10:20:02 AM2/6/18
to Lei Ma, AWX Project
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

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/CAN3L5gnq70EJV7AT7%3D4gv9RbC4V-etvArh4xxSVK%3DFuwWTcooA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

John Mitchell
UI Engineer - Ansible Tower
Ansible by Red Hat

919-394-6667 | ansible.com 

GitHub: jlmitch5

Reply all
Reply to author
Forward
0 new messages