ERROR! module is missing interpreter line
See original GitHub issueSeeing the following failure while running vagrant provision
TASK [ceph.ceph-common : generate ceph configuration file] *********************
fatal: [mon0]: FAILED! => {"failed": true, "msg": "ERROR! module is missing interpreter line"}
� ceph-ansible git:(master) � cat ansible.cfg
[defaults]
ansible_managed = Please do not change this file directly since it is managed by Ansible and will be overwritten
action_plugins = plugins/actions
� ceph-ansible git:(master) �
I have tried adding #!/usr/bin/env python
to all the files in plugins/actions
and roles/ceph-common/plugins/actions
also verified that the ansible.cfg has plugins/actions
specified. tried changing it to roles/ceph-common/plugins/actions
But I still see the issue…
Python 2.7.8
ansible 2.0.0.2
Update:
I added #!/usr/bin/python
to library/config_template
. Now I get a different error in the same task,
fatal: [mon0]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "config_template"}, "module_stderr": "OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 18664
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 0
Shared connection to 127.0.0.1 closed.
", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
module is missing interpreter line - running python ... - GitHub
SUMMARY Running python script using Ansible boiler_plate, I get this error "module (run_cmd) is missing interpreter line" ISSUE TYPE Bug ...
Read more >yes" leads to error "module (setup) is missing interpreter line"
This is a reported bug for ansible. The issue can be seen here. Although there is a pull request merged in the mainline...
Read more >module is missing interpreter line during ansible file copy
I am trying to copy a file from local to the remote VM using ansible, but got below error. My Playbook: --- -...
Read more >Ansible: module is missing interpreter line | michaelheap.com
Whilst trying to run Ansible 1.4.4 (installed from the Ubuntu PPA), I came across the following error: module is missing interpreter line.
Read more >[ansible-project] module is missing interpreter line
I'm hitting an error when I run a playbook that's spitting out the error "module is missing interpreter line". It's dying on a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ah! I found the issue. so, I had earlier followed http://www.sebastien-han.fr/blog/2014/03/03/Announcing-ceph-ansible-playbooks/ once. and as a result the ANSIBLE_CONFIG was set to something else. I set it back to the ansible.cfg in the ceph-ansible directory and it got past that stage.
sorry, for wasting time 😦
we have seen the “missing interpreter line” issue when running from a directory other than the
ceph-ansible/