31 lines
933 B
YAML
31 lines
933 B
YAML
---
|
|
- name: Concat lists for proxy setup
|
|
set_fact:
|
|
droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy | default([]) }}"
|
|
|
|
- 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: Create systemd unit files
|
|
template:
|
|
src: "etc/systemd/system/drone.service.j2"
|
|
dest: "/etc/systemd/system/drone.service"
|
|
mode: 0644
|
|
notify: __drone_restart
|
|
|
|
- name: Copy license key file is defined
|
|
copy:
|
|
src: "{{ droneci_license_key }}"
|
|
dest: "{{ droneci_service_directory }}/{{ droneci_license_key | basename }}"
|
|
mode: 0600
|
|
when: droneci_license_key is defined
|
|
become: True
|
|
become_user: root
|