|
|
@ -38,11 +38,12 @@
|
|
|
|
register: matrix_coturn_result_docker_network
|
|
|
|
register: matrix_coturn_result_docker_network
|
|
|
|
changed_when: false
|
|
|
|
changed_when: false
|
|
|
|
when: matrix_coturn_enabled|bool
|
|
|
|
when: matrix_coturn_enabled|bool
|
|
|
|
|
|
|
|
check_mode: no
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create Coturn network in Docker
|
|
|
|
- name: Create Coturn network in Docker
|
|
|
|
shell:
|
|
|
|
shell:
|
|
|
|
cmd: "docker network create --driver=bridge {{ matrix_coturn_docker_network }}"
|
|
|
|
cmd: "docker network create --driver=bridge {{ matrix_coturn_docker_network }}"
|
|
|
|
when: "matrix_coturn_enabled|bool and matrix_coturn_result_docker_network.stdout == ''"
|
|
|
|
when: "matrix_coturn_enabled|bool and matrix_coturn_result_docker_network.stdout == '' and not ansible_check_mode"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-coturn.service installed
|
|
|
|
- name: Ensure matrix-coturn.service installed
|
|
|
|
template:
|
|
|
|
template:
|
|
|
|