homelab/roles/comfycamp/tasks/main.yml

26 lines
602 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
group: 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:
src: comfycamp.env
dest: /etc/comfycamp/.env
owner: root
group: root
2024-10-19 00:11:40 +05:00
mode: "0600"
2024-10-05 15:37:17 +05:00
- name: Create comfycamp container
become: true
community.docker.docker_container:
name: comfycamp
2024-10-26 19:16:03 +05:00
image: git.comfycamp.space/lumin/comfycamp:v2.0.0
2024-10-05 15:37:17 +05:00
networks:
- name: postgresql
2024-10-14 23:58:06 +05:00
- name: haproxy
2024-10-05 15:37:17 +05:00
restart_policy: unless-stopped