Migrate docker_compose to docker_compose_v2

Move to docker_compose_v2 to fix the error when deploying the portainer
in Swarm as community.docker.docker_compose has been removed in latest
version of community.docker.
docker-compose v1 is End of Life since July 2022
This commit is contained in:
Tommy Lau 2025-06-01 10:43:45 -07:00
parent c4f20395b3
commit 196d415dff
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
---
- name: Start Portainer
community.docker.docker_compose:
community.docker.docker_compose_v2:
project_src: /home/ubuntu/docker-compose/portainer
state: present
restarted: true
recreate: auto