- name: Create model weights directory if it does not exist ansible.builtin.file: path: /data/weights/synapse-faces-weights state: directory mode: '0775' - name: Run module ansible.builtin.shell: docker run \ -d \ --rm \ --privileged=true \ -v /opt/sophon:/opt/sophon \ -v /etc/profile.d:/etc/profile.d \ -v /etc/ld.so.conf.d:/etc/ld.so.conf.d \ -v /data/weights/synapse-faces-weights:/server/data/weights/int8 \ -e DETECTOR_SIZE={{ size }} \ -e TZ="Europe/Moscow" \ -e MINIO_ENDPOINT="{{ MINIO_ENDPOINT }}" \ -e MINIO_ACCESS_KEY="{{ MINIO_ACCESS_KEY }}" \ -e MINIO_SECRET_KEY="{{ MINIO_SECRET_KEY }}" \ -e MINIO_PUB_CERT="{{ MINIO_PUB_CERT }}" \ -p {{ port }}:9000 \ --workdir /server \ --name faces_service_{{ port }} {{ image }} /bin/bash docker/tpu/entry.sh register: run_info - name: Display run info ansible.builtin.debug: var: run_info.stdout_lines