homelab/roles/comfycamp/tasks/main.yml

27 lines
636 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-21 11:48:23 +05:00
image: git.comfycamp.space/lumin/comfycamp:v1.2.0
2024-10-05 15:37:17 +05:00
env_file: /etc/comfycamp/.env
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