Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ansible This module requires the passlib Python library

I have tried to use ansible core module htpasswd on ubuntu and I get error

This module requires the passlib Python library

like image 772
TroodoN-Mike Avatar asked Jul 17 '16 16:07

TroodoN-Mike


2 Answers

In order task htpasswd module to work. server needs to have python-passlib package installed. This can be done via:

- name: Make sure we can use htpasswd module
  apt: "pkg=python-passlib state=installed"
like image 172
TroodoN-Mike Avatar answered Oct 09 '22 23:10

TroodoN-Mike


To install the latest version of passlib use pip

- name: Install latest passlib with pip
  pip: name=passlib

More on this you can read here

like image 32
Levon Avatar answered Oct 09 '22 23:10

Levon