Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

no longer works with ansible-core 2.13 #214

Open
RobVerduijn opened this issue Jun 23, 2022 · 2 comments
Open

no longer works with ansible-core 2.13 #214

RobVerduijn opened this issue Jun 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@RobVerduijn
Copy link

RobVerduijn commented Jun 23, 2022

Describe the bug

in the past we used the collection a lot with ansible2.9 and tower
now that we migrated to ansible automation platform we also moved to ansible core 2.13

when using the collection with ansible core 2.13 it throws the following error

fatal: [localhost]: FAILED! => {"msg": "Could not find imported module support code for ansible_collections.vmware.vcloud_director.plugins.modules.vcd_vapp_vm. Looked for (['ansible.module_utils.vcd.VcdAnsibleModule', 'ansible.module_utils.vcd'])"}

pyvcloud is installed
we use the collection branch of this project

any ideas on how to solve this ?

some details about the ansoble-core  package:

ansible [core 2.13.0]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/rob/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/rob/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.7 (default, Sep 13 2021, 08:18:39) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
jinja version = 3.0.3
libyaml = True




### Reproduction steps

```bash
1.
2.
3.
...

Expected behavior

the collection runs without any issue

Additional context

we run ansible in an ee_image with ansible-navigator.
This ensures we always have the same ansible version and collections and python venv

@RobVerduijn RobVerduijn added the bug Something isn't working label Jun 23, 2022
@RobVerduijn
Copy link
Author

oh...
just found this
Fixing module_utils import for collections #212
Guess that fixes it

@RobVerduijn
Copy link
Author

tried the pull request and it works for our environment

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant