"This module requires the passlib Python library"}

1,312 views
Skip to first unread message

Matthew Cooper

unread,
Mar 29, 2017, 2:10:42 PM3/29/17
to Ansible Project
I'm hoping someone can help me out.

I have a playbook to install Graylog2 on an EC2 host. The playbook fails on:

'TASK [graylog : setting nginx pass]'

with the following error:

'FAILED! => {"changed": false, "failed": true, "msg": "This module requires the passlib Python library"}'

Within the .yml file for this particular role I have:

- name: install python-passlib
  yum: name=python-passlib state=present
  tags: graylog2

which is before the setting nginx pass task:

- name: setting nginx pass
  htpasswd: path=/etc/nginx/htpasswd.users name=name password=password owner=root group=root mode=0640
  tags: graylog2


Has anyone else come across this issue previously? Any advice on how to resolve?

Thanks, Matt

Dick Davies

unread,
Mar 29, 2017, 2:33:29 PM3/29/17
to ansible list
what version of passlib? docs say 1.6 or better. IIRC EPEL6 has 1.5.something.
EL7 should be ok.
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/79b207eb-1841-456a-9887-9cf8e9762c3f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Matthew Cooper

unread,
Mar 30, 2017, 5:29:32 AM3/30/17
to Ansible Project, di...@hellooperator.net
Hi Dick,

Thanks for the response. It looks like version 1.5 is installed.

How would I go about installing version 1.6 or 1.7?

Many thanks, Matt

Matt

unread,
Mar 30, 2017, 1:01:47 PM3/30/17
to Ansible Project, di...@hellooperator.net
Just in case anyone else stumbles across this issue.

I had to install passlib with pip.

This is what I replaced the yum task with:

- name: Install passlibb with pip

  pip: name=passlib


Thanks for the help Dick.

Reply all
Reply to author
Forward
0 new messages