homelab/roles/comfycamp/tasks/main.yml

33 lines
849 B
YAML
Raw Normal View History

2024-10-05 15:37:17 +05:00
- name: Create comfycamp config dir
become: true
ansible.builtin.file:
path: /etc/comfycamp
state: directory
owner: root
2024-10-19 00:11:40 +05:00
mode: "1700"
2024-10-05 15:37:17 +05:00
- name: Copy comfycamp config
become: true
ansible.builtin.template:
2024-11-02 00:35:58 +05:00
src: comfycamp.toml.j2
dest: /etc/comfycamp/config.local.toml
2024-10-05 15:37:17 +05:00
owner: root
2024-10-19 00:11:40 +05:00
mode: "0600"
2024-11-06 16:55:33 +05:00
- name: Create comfycamp volume
become: true
community.docker.docker_volume:
name: comfycamp
2024-10-05 15:37:17 +05:00
- name: Create comfycamp container
become: true
community.docker.docker_container:
name: comfycamp
2024-11-06 16:55:33 +05:00
image: git.comfycamp.space/lumin/comfycamp:v2.2.0
2024-10-05 15:37:17 +05:00
networks:
- name: postgresql
2024-10-14 23:58:06 +05:00
- name: haproxy
2024-11-02 00:35:58 +05:00
volumes:
- /etc/comfycamp/config.local.toml:/usr/src/comfycamp/config.local.toml:ro
2024-11-06 16:55:33 +05:00
- comfycamp:/var/lib/comfycamp
2024-11-02 00:35:58 +05:00
env:
RUST_LOG: warn
2024-10-05 15:37:17 +05:00
restart_policy: unless-stopped