Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't resolve module/action 'community.docker.docker_compose_v2' #577

Closed
datuadiatma opened this issue Feb 6, 2024 · 1 comment
Closed

Comments

@datuadiatma
Copy link

Hello I got this following error after I ran ansible-playbook main.yml.

The error:

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

The error appears to be in '/home/pitemp/internet-pi/tasks/handlers.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  • name: Restart pi-hole
    ^ here

I am installing this on my pizero
ansible --version
ansible [core 2.15.9]
config file = None
configured module search path = ['/home/pitemp/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pitemp/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/pitemp/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pitemp/.local/bin/ansible
python version = 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110] (/usr/bin/python3)
jinja version = 3.1.3
libyaml = False


I would really appreciate any guidance. Thanks in advance.

@datuadiatma
Copy link
Author

I think the issue is related to #575 I reinstalled the ansible collection using
ansible-galaxy collection install -r requirements.yml --force, and it seems to have solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant