-
Notifications
You must be signed in to change notification settings - Fork 1
/
production_streamer.yml
68 lines (66 loc) · 1.51 KB
/
production_streamer.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
56
57
58
59
60
61
62
63
64
65
66
67
68
### PLAYBOOK FOR THE PRODUCTION SERVERS ###
#
# This is for icecast-prod.iwi.radio
#
#
#
- name: "Launch production {{ project_name }} server"
hosts: localhost
vars_files:
- env_vars/base.yml
- env_vars/production2.yml
- env_vars/vault.yml
vars:
- server_type: web
roles:
- ec2
- ensure-ec2-running
- load-balance
tags:
- production
- launch
- launch-production
- remote
- name: "Provision production {{ project_name }} server"
hosts: tag_project_env_{{ project_name_tag }}_{{ env_type }}
remote_user: admin
become: true
vars:
- setup_bitbucket_repo: true
- update_apt_cache: true
- rebuild_database: false
- server_type: web
- host_tag: tag_project_env_{{ project_name }}_{{ env_type }}
vars_files:
- env_vars/base.yml
- env_vars/production2.yml
- env_vars/vault.yml
roles:
- icecast
tags:
- production
- provision
- provision-production
- web
- remote
# - name: "Deploy {{ project_name }} customisation"
# hosts: tag_project_env_server_type_{{ project_name }}_{{ env_type }}_web
# serial: "100%"
# remote_user: ubuntu
# become: true
# vars:
# - update_apt_cache: true
# - server_type: web
# - host_tag: tag_project_env_server_type_{{ project_name }}_{{ env_type }}_web
# vars_files:
# - env_vars/base.yml
# - env_vars/production.yml
# - env_vars/vault.yml
# roles:
# - sunshine
# tags:
# - production
# - deploy
# - deploy-production
# - web
# - remote