我试图在ubuntu上使用ansible核心模块htpasswd,我收到错误
This module requires the passlib Python library
在命令任务htpasswd模块工作。服务器需要安装python-passlib包。这可以通过以下方式完成:
- name: Make sure we can use htpasswd module
apt: "pkg=python-passlib state=installed"
确保您使用的passlib
版本与您正在使用的python版本相匹配。
我不得不安装python3-passlib
而不是python-passlib
。