-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdokku-server-and-app.yml
42 lines (42 loc) · 1.12 KB
/
dokku-server-and-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- hosts: localhost
connection: local
roles:
- dokku_bot.ansible_dokku
vars:
dokku_global_domain: dokku-poc.me
# dokku_users:
# - name: admin
# username: admin
# ssh_key: "{{lookup('file', '/home/ubuntu/.ssh/dokku-key.pub')}}"
dokku_plugins:
- name: postgres
url: https://github.com/dokku/dokku-postgres.git
tasks:
- name: Set the global domain
tags:
- conf
dokku_domains:
global: true
state: set
domains:
- "{{ dokku_global_domain }}"
- name: Create a dokku app
dokku_app:
app: ruby-getting-started
- name: postgres:create default
dokku_service_create:
name: railsdatabase
service: postgres
- name: postgres:link default hello-world
dokku_service_link:
service: postgres
app: ruby-getting-started
name: railsdatabase
- name: Deploy Ruby on Rails getting started Heroku app
tags:
- deploy_only
dokku_clone:
app: ruby-getting-started
repository: https://github.com/heroku/ruby-getting-started
version: main