feat: add setup task
This commit is contained in:
parent
c7a8f87858
commit
f0a2a0222f
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- include: setup.yml
|
||||
- include: drone-server.yml
|
||||
when: drone_server_enable == "true"
|
||||
- include: drone-agent.yml
|
||||
|
|
16
tasks/setup.yml
Normal file
16
tasks/setup.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user