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

18 lines
419 B
YAML

# vim: ft=yaml.ansible
---
- name: Create Drone volume folder
file:
path: "{{ services.drone.volume_folder }}"
state: directory
- name: Upload Compose file for Drone
template:
src: compose-files/drone.yml.j2
dest: "{{ services.drone.volume_folder }}/docker-compose.yml"
- name: Deploy Drone
docker_compose:
project_src: "{{ services.drone.volume_folder }}"
pull: true
state: present