Ansible.Turn/roles/turn/tasks/main.yml
Danny Bessems bda7db0ba0
Some checks failed
continuous-integration/drone/push Build is failing
Rebase plugin container
2022-10-15 17:33:12 +02:00

34 lines
834 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 \
--realm=dendrite
network_mode: host
state: started
restart_policy: unless-stopped
recreate: yes