- name: Set default docker_repository_path
  set_fact:
    docker_repository_path: "{{docker_compose.directories.services}}repository/"

- name: pull docker repository
  git:
    repo:       "{{ docker_repository_address }}"
    dest:       "{{ docker_repository_path }}"
    version:    "{{ docker_repository_branch | default('main') }}"
    depth:      1
    update:     yes
    recursive:  yes
  notify:
    - docker compose build
    - docker compose up
  become: true