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

24 lines
516 B
YAML

---
- name: Create Service Directory
file:
state: directory
path: "{{ compose_dir | mandatory }}"
- name: Copy Compose files
become: false
retries: 2
until: 'compose_files.rc == 0'
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