ansible-role-docker-compose/tasks/present_cp.yml

22 lines
470 B
YAML
Raw Normal View History

2023-06-02 11:54:43 +02:00
---
- name: Create Service Directory
file:
state: directory
path: "{{ compose_dir | mandatory }}"
- name: Copy Compose files
become: false
ansible.posix.synchronize:
src: "{{ service_base }}/{{ service | mandatory }}/"
dest: "{{ service_dir | mandatory }}"
archive: false
checksum: true
delete: true
recursive: true
mode: push
owner: false
group: false
perms: false
use_ssh_args: true
register: compose_files