using pam_limits module in Ansible 2.1 errors

102 views
Skip to first unread message

Fong Yang

unread,
Jun 13, 2016, 7:42:47 PM6/13/16
to Ansible Project
I'm attempting to use the pam_limits module as included in Ansible 2.1 but getting this error:

  TASK [system_configs : pam_limits] *********************************************
  fatal: [10.0.107.1]: FAILED! => {"failed": true, "msg": "module (pam_limits) is missing interpreter line"}
  fatal: [10.0.97.1]: FAILED! => {"failed": true, "msg": "module (pam_limits) is missing interpreter line"}
  fatal: [10.0.70.1]: FAILED! => {"failed": true, "msg": "module (pam_limits) is missing interpreter line"}
        to retry, use: --limit @/etc/ansible/main.retry

What am I missing?  This is the task:

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


Kai Stian Olstad

unread,
Jun 14, 2016, 9:32:18 AM6/14/16
to ansible...@googlegroups.com
On 14. juni 2016 01:42, Fong Yang wrote:
> TASK [system_configs : pam_limits]
> *********************************************
> fatal: [10.0.107.1]: FAILED! => {"failed": true, "msg": "module
> (pam_limits) is missing interpreter line"}
> fatal: [10.0.97.1]: FAILED! => {"failed": true, "msg": "module
> (pam_limits) is missing interpreter line"}
> fatal: [10.0.70.1]: FAILED! => {"failed": true, "msg": "module
> (pam_limits) is missing interpreter line"}
> to retry, use: --limit @/etc/ansible/main.retry
>
> What am I missing? This is the task:
>
> - pam_limits: domain=* limit_item=nofile limit_type=- value=65536

This work for me on Ansible 2.1, so it must be something local.

--
Kai Stian Olstad

Reply all
Reply to author
Forward
0 new messages