ansible-vault requires the cryptography library in order to function #1

Open
opened 2022-11-02 08:17:52 +00:00 by Gokusan31 · 0 comments

Hello,

When i try to use ansible-vault command on a fresh installed AlmaLinux 9 node i got an error: "ansible-vault requires the cryptography library in order to function"

Ansible installed with dnf command from almalinux repo.

$ ansible --version
ansible [core 2.12.2]
config file = /home/xxxxx/ansible/ansible.cfg
configured module search path = ['/home/xxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/xxxx/.ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.10 (main, Feb 9 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
jinja version = 2.11.3
libyaml = True

Environment:
AlmaLinux 9 5.14.0-70.22.1.el9_0.x86_64
Python crypto Library:
python3-cffi-1.14.5-5.el9.x86_64
python3-cryptography-36.0.1-1.el9_0.x86_64

Error message:
fatal: [xxxx]: FAILED! => {
"ansible_facts": {},
"ansible_included_var_files": [],
"changed": false,
"message": "ansible-vault requires the cryptography library in order to function"
}

Hello, When i try to use ansible-vault command on a fresh installed AlmaLinux 9 node i got an error: "ansible-vault requires the cryptography library in order to function" Ansible installed with dnf command from almalinux repo. $ ansible --version ansible [core 2.12.2] config file = /home/xxxxx/ansible/ansible.cfg configured module search path = ['/home/xxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /home/xxxx/.ansible/collections executable location = /usr/bin/ansible python version = 3.9.10 (main, Feb 9 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] jinja version = 2.11.3 libyaml = True Environment: AlmaLinux 9 5.14.0-70.22.1.el9_0.x86_64 Python crypto Library: python3-cffi-1.14.5-5.el9.x86_64 python3-cryptography-36.0.1-1.el9_0.x86_64 Error message: fatal: [xxxx]: FAILED! => { "ansible_facts": {}, "ansible_included_var_files": [], "changed": false, "message": "ansible-vault requires the cryptography library in order to function" }
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rpms/ansible-core#1
No description provided.