ansible/roles/docker/tasks/codeserver.yml
2024-12-03 17:56:24 -07:00

19 lines
456 B
YAML

- name: make codeserver directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/codeserver
- name: Template out the compose file
ansible.builtin.template:
src: codeserver-compose.yml.j2
dest: /opt/stacks/codeserver/compose.yml
owner: root
mode: 644
- name: deploy codeserver stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/codeserver
files:
- compose.yml