ansible-collections / community.hashi_vault

Ansible collection for managing and working with HashiCorp Vault.
https://docs.ansible.com/ansible/devel/collections/community/hashi_vault/index.html
GNU General Public License v3.0
80 stars 59 forks source link

ERROR! couldn't resolve module/action 'community.hashi_vault'. #400

Closed Kaiser016X closed 1 year ago

Kaiser016X commented 1 year ago

Hello everyone. I was trying to use an ansible playbook with the community.hashi_vault 5.0.0 module, but i still have : ERROR! couldn't resolve module/action ... I think i met all the requirements , if anyone has and idea ?

Thanks you very much for any help/ideas

edit : i also did it on another server, this time with almalinux 8.7 and it's the same error.

############################### Here is all the information:

os : almalinux 9.2 ################################################### ansible --version ansible [core 2.14.5] config file = None configured module search path = ['/home/shed/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible ansible collection location = /home/shed/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible python version = 3.9.14 (main, Jan 9 2023, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] (/usr/bin/python3) jinja version = 3.1.2 libyaml = True

###########################################

pip show hvac Name: hvac Version: 1.2.1 Summary: HashiCorp Vault API client Home-page: https://github.com/hvac/hvac Author: Ian Unruh Author-email: ianunruh@gmail.com License: Apache-2.0 Location: /home/shed/.local/lib/python3.9/site-packages Requires: requests, pyhcl Required-by:

###########################################

the begining of playbook ( it's just a test vault server dont worry :D )


################################################# /home/shed/.ansible/collections/ansible_collections Collection Version


community.hashi_vault 5.0.0

####################################################

=> full error :

ERROR! couldn't resolve module/action 'community.hashi_vault.hashi_vault'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/shed/play.yml': line 5, column 7, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks: