- 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