datacoop.ansible/roles/docker/tasks/services/rallly.yml

23 lines
568 B
YAML

# vim: ft=yaml.ansible
---
- name: Create Rallly volume folders
file:
name: "{{ services.rallly.volume_folder }}/postgres"
state: directory
- name: Copy Rallly environment file
template:
src: rallly/env.j2
dest: "{{ services.rallly.volume_folder }}/rallly.env"
- name: Upload Compose file for Rallly
template:
src: compose-files/rallly.yml.j2
dest: "{{ services.rallly.volume_folder }}/docker-compose.yml"
- name: Deploy Rallly
docker_compose:
project_src: "{{ services.rallly.volume_folder }}"
pull: true
state: present