docs: update instruction

This commit is contained in:
Bo-Yi Wu 2019-06-16 19:48:54 +08:00
parent 2e635dd5bc
commit 1978f6e796

View File

@ -51,11 +51,21 @@ The ansible role offers additional parameters - please check `defaults/main.yml`
## Example Playbook ## Example Playbook
import the drone role from
```
$ ansible-galaxy import appleboy ansible-drone
```
Add the following in playbook.
```yml
- hosts: drone - hosts: drone
vars_files: vars_files:
- vars/main.yml - vars/main.yml
roles: roles:
- { role: appleboy.drone } - { role: appleboy.drone }
```
Inside `vars/main.yml` for `drone-server` Inside `vars/main.yml` for `drone-server`