docs: update instruction
This commit is contained in:
parent
2e635dd5bc
commit
1978f6e796
10
README.md
10
README.md
|
@ -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`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user