# vim: ft=yaml.ansible
---
- name: Deploy Lingva Docker container
community.docker.docker_container:
name: lingva
state: "{{ 'absent' if down is defined and down else 'started' }}"
restart: "{{ restart is defined and restart }}"
recreate: "{{ recreate is defined and recreate }}"
image: thedaviddelta/lingva-translate:{{ services.lingva.version }}
restart_policy: always
env:
site_domain: "{{ services.lingva.domain }}"
networks:
- name: services
aliases:
- lingva
- name: tor