# vim: ft=yaml.ansible --- - name: Create XFTP server volume directories ansible.builtin.file: name: "{{ services.simplexmq_xftp.volume }}/{{ dir }}" owner: root mode: u=rwx,g=rx,o=rx state: directory loop: - config - logs - files loop_control: loop_var: dir - name: Deploy XFTP server Docker container community.docker.docker_container: name: xftp-server state: "{{ 'absent' if stop is defined and stop else 'started' }}" restart: "{{ stop is undefined or not stop }}" image: simplexchat/xftp-server:{{ services.simplexmq_xftp.version }} restart_policy: always default_host_ip: '' networks: - name: tor aliases: - xftp-server env: ADDR: "{{ services.simplexmq_xftp.domain }}" QUOTA: "{{ services.simplexmq_xftp.quota }}" volumes: - "{{ services.simplexmq_xftp.volume }}/config:/etc/opt/simplex:rw" - "{{ services.simplexmq_xftp.volume }}/logs:/var/opt/simplex:rw" - "{{ services.simplexmq_xftp.volume }}/files:/srv/xftp:rw" published_ports: - 5443:443/tcp labels: com.centurylinklabs.watchtower.stop-signal: SIGINT