- name: create docker-compose.yml for bigbluebutton
  command:
    cmd: bash ./scripts/generate-compose
    chdir: "{{ docker_repository_path }}"
  environment:
    COMPOSE_HTTP_TIMEOUT: 600
    DOCKER_CLIENT_TIMEOUT: 600

- name: Slurp docker-compose.yml from remote host
  slurp:
    src: "{{ docker_compose_file_origine }}"
  register: compose_slurp

- name: Transform docker-compose.yml with compose_mods
  copy:
    content: "{{ compose_slurp.content | b64decode | compose_mods(docker_repository_path, docker_compose.files.env) }}"
    dest: "{{ docker_compose_file_final }}"
  notify:
    - docker compose just up
