homelab/roles/comfycamp/tasks/main.yml

25 lines
602 B
YAML

- name: Create comfycamp config dir
become: true
ansible.builtin.file:
path: /etc/comfycamp
state: directory
owner: root
group: root
mode: "1700"
- name: Copy comfycamp config
become: true
ansible.builtin.template:
src: comfycamp.env
dest: /etc/comfycamp/.env
owner: root
group: root
mode: "0600"
- name: Create comfycamp container
become: true
community.docker.docker_container:
name: comfycamp
image: git.comfycamp.space/lumin/comfycamp:v2.0.0
networks:
- name: postgresql
- name: haproxy
restart_policy: unless-stopped