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

24 lines
516 B
YAML
Raw Permalink 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
2023-08-21 15:49:40 +02:00
retries: 2
until: 'compose_files.rc == 0'
2023-06-02 11:54:43 +02:00
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