This commit is contained in:
parent
ce4d073da2
commit
3059ed92fb
@ -1,4 +1,2 @@
|
|||||||
---
|
---
|
||||||
- import_tasks: prepare.yml
|
- include_tasks: setup.yml
|
||||||
- import_tasks: setup.yml
|
|
||||||
- import_tasks: post.yml
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Ensure drone service is up and running
|
|
||||||
systemd:
|
|
||||||
state: started
|
|
||||||
daemon_reload: yes
|
|
||||||
enabled: yes
|
|
||||||
name: drone
|
|
||||||
become: True
|
|
||||||
become_user: root
|
|
@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
- block:
|
|
||||||
- name: Ensure service directory exists
|
|
||||||
file:
|
|
||||||
path: "{{ droneci_service_directory }}"
|
|
||||||
state: directory
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Install required dependencies
|
|
||||||
pip:
|
|
||||||
name: "{{ item.name }}"
|
|
||||||
executable: "{{ item.exec | default(omit) }}"
|
|
||||||
state: present
|
|
||||||
loop: "{{ __drone_pip_dependencies }}"
|
|
||||||
become: True
|
|
||||||
become_user: root
|
|
@ -4,6 +4,12 @@
|
|||||||
droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy | default([]) }}"
|
droneci_no_proxy: "{{ __droneci_default_no_proxy }} + {{ droneci_no_proxy | default([]) }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
- name: Ensure service directory exists
|
||||||
|
file:
|
||||||
|
path: "{{ droneci_service_directory }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
- name: Deploy compose file to '{{ droneci_service_directory }}'
|
- name: Deploy compose file to '{{ droneci_service_directory }}'
|
||||||
template:
|
template:
|
||||||
src: "services/droneci-compose.yml.j2"
|
src: "services/droneci-compose.yml.j2"
|
||||||
@ -26,5 +32,12 @@
|
|||||||
dest: "{{ droneci_service_directory }}/{{ droneci_license_key | basename }}"
|
dest: "{{ droneci_service_directory }}/{{ droneci_license_key | basename }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
when: droneci_license_key is defined
|
when: droneci_license_key is defined
|
||||||
|
|
||||||
|
- name: Ensure drone service is up and running
|
||||||
|
systemd:
|
||||||
|
state: started
|
||||||
|
daemon_reload: yes
|
||||||
|
enabled: yes
|
||||||
|
name: drone
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -2,8 +2,3 @@
|
|||||||
__droneci_default_no_proxy:
|
__droneci_default_no_proxy:
|
||||||
- droneserver
|
- droneserver
|
||||||
- droneagent
|
- droneagent
|
||||||
|
|
||||||
__drone_pip_dependencies:
|
|
||||||
- name: docker
|
|
||||||
- name: docker-compose
|
|
||||||
exec: pip3
|
|
||||||
|
Loading…
Reference in New Issue
Block a user