This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
drone-docker-runner.autonom.../ansible/pre-deploy.yml
2020-03-25 11:48:37 +01:00

36 lines
1.0 KiB
YAML

---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/drone-docker-runner/vars/"
extensions:
- yml
- name: "Configure {{ domain }} domain"
dokku_domains:
app: drone-docker-runner
domains:
- "{{ domain }}"
state: present
- name: Specify docker volume mount
dokku_storage:
app: drone-docker-runner
mounts:
- /var/run/docker.sock:/var/run/docker.sock
- name: Configure the app environment
dokku_config:
app: drone-docker-runner
restart: false
config:
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
DRONE_RPC_HOST: "{{ drone_domain }}"
DRONE_RPC_PROTO: "https"
DRONE_RPC_SECRET: "{{ rpc_secret }}"
DRONE_RUNNER_CAPACITY: "2"
DRONE_RUNNER_NAME: "drone-docker-runner"
DRONE_RUNNER_VOLUMES: "/var/run/docker.sock:/var/run/docker.sock"