2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2019-03-02 21:34:33 +00:00
|
|
|
---
|
2023-09-30 16:15:27 +00:00
|
|
|
- name: Create Drone volume folder
|
|
|
|
file:
|
|
|
|
path: "{{ services.drone.volume_folder }}"
|
|
|
|
state: directory
|
|
|
|
|
2023-09-30 14:25:06 +00:00
|
|
|
- name: Upload Compose file for Drone
|
|
|
|
template:
|
|
|
|
src: compose-files/drone.yml.j2
|
|
|
|
dest: "{{ services.drone.volume_folder }}/docker-compose.yml"
|
2020-03-01 12:47:09 +00:00
|
|
|
|
2023-09-30 14:25:06 +00:00
|
|
|
- name: Deploy Drone
|
|
|
|
docker_compose:
|
|
|
|
project_src: "{{ services.drone.volume_folder }}"
|
|
|
|
pull: true
|
|
|
|
state: present
|