feat: add setup task

This commit is contained in:
Bo-Yi Wu 2019-06-14 17:54:27 +08:00
parent c7a8f87858
commit f0a2a0222f
2 changed files with 17 additions and 0 deletions

View File

@ -1,4 +1,5 @@
--- ---
- include: setup.yml
- include: drone-server.yml - include: drone-server.yml
when: drone_server_enable == "true" when: drone_server_enable == "true"
- include: drone-agent.yml - include: drone-agent.yml

16
tasks/setup.yml Normal file
View File

@ -0,0 +1,16 @@
---
- name: verify that required parameters are set for drone general setup
fail:
msg: "Variable '{{ item }}' is not defined for drone general setup"
when: item not in vars
with_items:
- drone_rpc_secret
tags:
- configuration
- name: add config folder for drone
file:
path: "/etc/drone"
state: "directory"
tags:
- configuration