Ansible 2.1 failing on pam_limits module

I’m getting errors with pam_limits on the latest Ansible 2.1:

TASK [system_configs : pam_limits] *********************************************

fatal: [10.1.107.1]: FAILED! => {“failed”: true, “msg”: “module (pam_limits) is missing interpreter line”}

fatal: [10.1.97.1]: FAILED! => {“failed”: true, “msg”: “module (pam_limits) is missing interpreter line”}

This is the task:

  • pam_limits: domain=* limit_item=nofile limit_type=- value=65536

Is this a bug?

you seem to be using a custom pam_limits module that does not have a shebang