mod workflow && docker copy

This commit is contained in:
CC
2026-09-07 23:42:32 +01:00
parent b5341f866c
commit 72c218fe21
3 changed files with 5 additions and 22 deletions

View File

@@ -1,17 +1,12 @@
---
# Copy directory recursively to remote host
- name: Copy project directory to remote
ansible.builtin.synchronize:
src: ../compose/{{ folder_name }}
dest: /home/cloud/
ansible.posix.synchronize:
src: "../../compose/{{ folder_name }}/"
dest: "/home/cloud/{{ folder_name }}/"
mode: push
- name: Start Compose stack
community.docker.docker_compose_v2:
project_src: /home/cloud/{{ folder_name }}
project_src: "/home/cloud/{{ folder_name }}"
build: always
pull: always
state: present