-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdeploy.yml
55 lines (52 loc) · 1.52 KB
/
deploy.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
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# Playbook to deploying the TICK stack
# Deploy to all hosts
- hosts: all
# Run commands as sudo
become: true
# All components of the stack are deployed with respective roles, inside the roles/ directory.
# http://docs.ansible.com/ansible/playbooks_roles.html for more on roles.
roles:
- docker
- postgresql
- nginx
post_tasks:
- name: Deploy Asana Instance
docker:
name: "asana"
image: "pmyjavec/asana"
net: "host"
env:
DB_USERNAME: "asana"
DB_PASSWORD: "asana"
DB_HOSTNAME: "localhost"
# Configuration variables can be used to change the behaviour of roles,
# for example specify versions to install, or change the way a configuration file is generated.
# For a list of defaults, see roles/<name>/defaults/.
vars:
postgresql_databases:
- name: asana_asana_repo
owner: asana
hstore: yes
uuid_ossp: yes
citext: yes
postgresql_users:
- name: asana
pass: asana
encrypted: no
postgresql_user_privileges:
- name: asana
db: asana_asana_repo
priv: "ALL"
role_attr_flags: "CREATEDB"
nginx_remove_default_vhost: true
nginx_vhosts:
- listen: "80 default_server"
server_name: "{{ ansible_hostname }}"
root: "/var/www/example.com"
index: "index.php index.html index.htm"
extra_parameters: |
location / {
proxy_pass http://127.0.0.1:4000;
proxy_set_header Host $host;
}