use docker_compose_v2 module
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 31s

This commit is contained in:
Marius Meyer 2024-04-10 19:57:47 +02:00
parent fbc2a17011
commit d03e1142f2
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
- Backup Gitea - Backup Gitea
- name: Stop Gitea for backup - name: Stop Gitea for backup
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: /opt/gitea project_src: /opt/gitea
state: present state: present
stopped: true stopped: true

View File

@ -3,13 +3,13 @@
file: backup.yaml file: backup.yaml
- name: Ensure Gitea is restarted - name: Ensure Gitea is restarted
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: /opt/gitea project_src: /opt/gitea
restarted: true restarted: true
register: docker_compose register: docker_compose
- name: Ensure Gitea is running - name: Ensure Gitea is running
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: /opt/gitea project_src: /opt/gitea
register: docker_compose register: docker_compose