# module is missing interpreter line

**URL:** <https://forum.ansible.com/t/module-is-missing-interpreter-line/17519>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [February 15, 2015, 7:01pm UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519 "2015-02-15T19:01:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 15, 2015, 7:01pm UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519/1 "2015-02-15T19:01:32Z")

</div>

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 task that uses the file module to copy a file to the remote server. I never had any trouble with this task until I tried to run the latest Ansible code in an attempt to fix an issue with a completely different task in the same playbook.

On this system I’m using the latest release branch (1.8.2) from the ubuntu PPA, but to try and fix my other failing task I copied my ansible.cfg file and adjusted the settings as necessary so I could use a cloned copy of the ansible devel branch to run the playbook instead. I started seeing this new error once I used the devel branch, so I tried to go back and re-run my playbook using the 1.8.2 version already installed on my system (using the original config file), but the error continued. The task in question (which hasn’t changed at all since I did all this, neither has anything else in the playbook) is below:

- name: install private docker registry CA cert  
sudo: yes  
copy:  
src=…/files/docker\_registry.pem  
dest=/usr/local/share/ca-certificates/docker\_registry.pem  
owner=root  
group=root  
mode=0600

I thought perhaps it might be a cached setting or module on the remote system that was causing the error, so I removed the entire .ansible directory from the remote user’s home directory, but it didn’t fix the error.

Does anyone know how I can fix this?

Thanks,  
Guy

---

<div class="post-metadata">

**Author:** ![Giovanni\_Tirloni](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Post date:** [February 16, 2015, 1:08am UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519/2 "2015-02-16T01:08:20Z")

</div>

Hi Guy,

Do you get just that error line or is there a full stack trace? Please  
send the output of `ansible --version` too.

Giovanni

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 16, 2015, 1:46pm UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519/3 "2015-02-16T13:46:29Z")

</div>

make sure you removed the previous version, module loading changed and  
some old file might be interfering with loading the correct module.

---

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 17, 2015, 7:41pm UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519/4 "2015-02-17T19:41:41Z")

</div>

Hi Giovanni,

No, there’s no stack trace. Just that error line.

Unfortunately I’m not at home right now but when I get the chance I’ll post it here.

Thanks,  
Guy

---

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [February 17, 2015, 7:41pm UTC](https://forum.ansible.com/t/module-is-missing-interpreter-line/17519/5 "2015-02-17T19:41:59Z")

</div>

Thanks Brian, I’ll give that a go when I get the time.
