27 lines
711 B
YAML
27 lines
711 B
YAML
- name: Create comfycamp config dir
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: /etc/comfycamp
|
|
state: directory
|
|
owner: root
|
|
mode: "1700"
|
|
- name: Copy comfycamp config
|
|
become: true
|
|
ansible.builtin.template:
|
|
src: comfycamp.toml.j2
|
|
dest: /etc/comfycamp/config.local.toml
|
|
owner: root
|
|
mode: "0600"
|
|
- name: Create comfycamp container
|
|
become: true
|
|
community.docker.docker_container:
|
|
name: comfycamp
|
|
image: git.comfycamp.space/lumin/comfycamp:v2.1.0
|
|
networks:
|
|
- name: postgresql
|
|
- name: haproxy
|
|
volumes:
|
|
- /etc/comfycamp/config.local.toml:/usr/src/comfycamp/config.local.toml:ro
|
|
env:
|
|
RUST_LOG: warn
|
|
restart_policy: unless-stopped
|