ansible_drone/tasks/drone-agent.yml

16 lines
409 B
YAML
Raw Normal View History

2019-06-14 10:13:13 +02:00
---
- name: run drone agent
docker_container:
name: "drone-agent"
image: "drone/agent:{{ drone_version }}"
state: started
restart_policy: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env:
DRONE_RPC_SERVER={{ drone_rpc_server }}
DRONE_RPC_SECRET={{ drone_rpc_secret }}
DRONE_RUNNER_CAPACITY={{ drone_runner_capacity }}
tags:
- drone-agent