36 lines
1.0 KiB
YAML
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"
|