couldn't resolve module/action 'community.docker.docker_compose_v2'
datuadiatma opened this issue · comments
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.
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.