[Bug 286803] sysutils/py-ansible-core requires security/py-passlib
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286803] sysutils/py-ansible-core requires security/py-passlib"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286803] sysutils/py-ansible-core requires security/py-passlib"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 286803] sysutils/py-ansible-core requires security/py-passlib"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 May 2025 18:40:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286803
Bug ID: 286803
Summary: sysutils/py-ansible-core requires security/py-passlib
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: 000.fbsd@quip.cz
CC: bofh@freebsd.org, cy@FreeBSD.org
CC: bofh@freebsd.org, cy@FreeBSD.org
After recent upgrade of Ansible from py311-ansible-core-2.15.13 to
py311-ansible-core-2.18.5 one of my playbooks can no longer be used as it
errors out with:
FAILED! => {"msg": "An unhandled exception occurred while running the lookup
plugin 'password'. Error was a <class 'ansible.errors.AnsibleError'>, original
message: Unable to encrypt nor hash, passlib must be installed. No module named
'passlib'. Unable to encrypt nor hash, passlib must be installed. No module
named 'passlib'"}
It is this part of playbook
- name: Add user
user:
name: "{{ username }}"
uid: "{{ uid }}"
comment: "{{ comment }}"
shell: /usr/local/bin/bash
groups: devel
skeleton: /root/skel_devel
createhome: yes
state: present
password: "{{ lookup('password', 'credentials/' + username + '_password
encrypt=sha512_crypt length=12 chars=ascii_letters,digits,hexdigits') }}"
update_password: on_create
It worked for a years.
I installed py311-passlib-1.7.4_1 and the playbook works again.
So I think security/py-passlib should be added as runtime dependency.
--
You are receiving this mail because:
You are the assignee for the bug.