2018-12-13 22:09:22 +00:00
|
|
|
---
|
|
|
|
- name: Concat lists for proxy setup
|
|
|
|
set_fact:
|
2018-12-13 23:09:51 +00:00
|
|
|
droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy | default([]) }}"
|
2018-12-13 22:09:22 +00:00
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: Deploy compose file to '{{ droneci_service_directory }}'
|
|
|
|
template:
|
|
|
|
src: "services/droneci-compose.yml.j2"
|
|
|
|
dest: "{{ droneci_service_directory }}/docker-compose.yml"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: __drone_restart
|
|
|
|
|
|
|
|
- name: Ensure drone ci containers are up and running
|
|
|
|
docker_service:
|
|
|
|
project_src: "{{ droneci_service_directory }}"
|
|
|
|
become: True
|
|
|
|
become_user: root
|