forked from auxilincom/deploy-drone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
22 lines (22 loc) · 798 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: Deploy drone ci server
hosts: drone
become: true
vars_prompt:
- name: ansible_drone_deploy_postgresql
prompt: "Install postgres database for drone from scratch? (yes/no)"
default: "no"
- name: ansible_drone_deploy_server
prompt: "Install drone server from scratch? (yes/no)"
default: "no"
- name: ansible_drone_deploy_agents
prompt: "Install drone agents from scratch? (yes/no)"
default: "no"
vars_files:
- "vars/credentials.yml"
- "vars/main.yml"
roles:
- role: auxilincom.drone
drone_rpc_server: "http{{ 's' if server_setup_ssl or server_setup_letsencrypt_ssl else '' }}\
://{{ drone_server_host }}"
drone_server_proto: "http{{'s' if server_setup_ssl or server_setup_letsencrypt_ssl else ''}}"