Ansible.Turn/roles/turn/tasks/main.yml
Danny Bessems 62fcec155d
All checks were successful
continuous-integration/drone/push Build is passing
Configure coturn
2022-10-16 22:28:36 +02:00

37 lines
930 B
YAML

- name: Get current running containers
community.docker.docker_host_info:
containers: yes
register: docker_info
- name: Stop/Remove all current containers
community.docker.docker_container:
name: "{{ item }}"
state: absent
loop: "{{ docker_info.containers | map(attribute='Id') | list }}"
- name: Prune everything
community.docker.docker_prune:
containers: yes
images: yes
volumes: yes
- name: Start coturn container
community.docker.docker_container:
name: coturn
image: bv11-cr01.bessems.eu/proxy/coturn/coturn:{{ coturn.version }}
command: >
-n \
-v \
--log-file=stdout \
--lt-cred-mech \
--no-cli \
--no-tls \
--relay-ip='turn.spamasaurus.com' \
--external-ip='turn.spamasaurus.com' \
--user=dendrite \
--realm=dendrite
network_mode: host
state: started
restart_policy: unless-stopped
recreate: yes