cannot resolve community modules

812 views
Skip to first unread message

Tony

unread,
Dec 9, 2021, 3:38:15 PM12/9/21
to AWX Project
Can anyone help with this?

I have had this problem with all community AWS modules:

ERROR! couldn't resolve module/action 'community.aws.ec2_eip'. This often indicates a misspelling, missing collection, or incorrect module path.
3
4
The error appears to be in '/runner/project/attachip.yml': line 7, column 5, but may
5
be elsewhere in the file depending on the exact syntax problem.
6
7
The offending line appears to be:
8
9
10
- name: associate elastic IP with instance
11
^ here

Tony

unread,
Dec 13, 2021, 6:00:14 AM12/13/21
to AWX Project
Anyone help on this one?

John Westcott

unread,
Dec 14, 2021, 10:56:07 AM12/14/21
to Tony, AWX Project
With execution environments this maybe harder to guess at than before.

For starters I’d ask the following;
What version of Ansible are you running in your execution environment?
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

Can you check and see if the community.general collection is installed in your EE.
Do you have a requirements.yml that is supposed to be pulling the collection in on the project sync? If so, were there any issues with the project sync? If not, can you confirm that the collection is downloaded?

-John



--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/47aef60c-f1ea-43af-89e2-beff45a8007bn%40googlegroups.com.

Tony

unread,
Dec 14, 2021, 2:50:29 PM12/14/21
to AWX Project
Hey

ansible [core 2.11.5.post0]
  config file = None
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.6 (default, Jan 29 2021, 17:38:16) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
  jinja version = 2.10.3
  libyaml = True

I can see some modules installed from community.general installed, but does not install anything else on-demand.

Which location of my SCM is requirements.yml meant to be? No issues with project sync

Cheers
Message has been deleted
Message has been deleted
Message has been deleted

John Westcott

unread,
Jan 10, 2022, 9:17:22 AM1/10/22
to Tony, AWX Project
There are two files. One for roles and one for collections both are documents in the projects section of the Tower user guide. Specifically for collections see:
      https://docs.ansible.com/ansible-tower/latest/html/userguide/projects.html#collections-support

-John


Reply all
Reply to author
Forward
0 new messages