I have tried to use ansible core module htpasswd on ubuntu and I get error
This module requires the passlib Python library
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"
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With