26 lines
636 B
YAML
26 lines
636 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:v1.2.0
|
|
env_file: /etc/comfycamp/.env
|
|
networks:
|
|
- name: postgresql
|
|
- name: haproxy
|
|
restart_policy: unless-stopped
|