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

36 lines
1.0 KiB
YAML
Raw Normal View History

2020-03-24 12:57:22 +00:00
---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
2020-03-24 14:46:51 +00:00
dir: "{{ dokku_lib_root }}/data/ansible/drone-docker-runner/vars/"
2020-03-24 12:57:22 +00:00
extensions:
- yml
- name: "Configure {{ domain }} domain"
dokku_domains:
2020-03-24 14:46:51 +00:00
app: drone-docker-runner
2020-03-24 12:57:22 +00:00
domains:
- "{{ domain }}"
state: present
2020-03-24 14:46:51 +00:00
- name: Specify docker volume mount
2020-03-24 12:57:22 +00:00
dokku_storage:
2020-03-24 14:46:51 +00:00
app: drone-docker-runner
2020-03-24 12:57:22 +00:00
mounts:
2020-03-24 14:46:51 +00:00
- /var/run/docker.sock:/var/run/docker.sock
2020-03-24 12:57:22 +00:00
- name: Configure the app environment
dokku_config:
2020-03-24 14:46:51 +00:00
app: drone-docker-runner
2020-03-24 12:57:22 +00:00
restart: false
config:
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
2020-03-24 14:46:51 +00:00
DRONE_RPC_HOST: "{{ drone_domain }}"
DRONE_RPC_PROTO: "https"
2020-03-24 12:57:22 +00:00
DRONE_RPC_SECRET: "{{ rpc_secret }}"
2020-03-24 14:46:51 +00:00
DRONE_RUNNER_CAPACITY: "2"
DRONE_RUNNER_NAME: "drone-docker-runner"
2020-03-25 10:48:37 +00:00
DRONE_RUNNER_VOLUMES: "/var/run/docker.sock:/var/run/docker.sock"