-
Notifications
You must be signed in to change notification settings - Fork 9
/
deploy_production.yml
56 lines (46 loc) · 1.18 KB
/
deploy_production.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
---
- hosts: _railway_ec2_production_*
remote_user: ansible
become: yes
become_user: app
gather_facts: false
roles:
- role: app_deploy
param_name: production
param_branch: "{{ version | default('main') }}"
tags: app_deploy
- hosts: _railway_ec2_production_webserver
remote_user: ansible
become: yes
gather_facts: false
roles:
- role: app_deploy_precompile
param_name: production
tags: app_deploy_precompile
- hosts: _railway_ec2_production_control
remote_user: ansible
become: yes
gather_facts: false
roles:
- role: app_deploy_migrate
param_name: production
tags: app_deploy_migrate
- hosts: _railway_ec2_production_webserver
serial: 1
remote_user: ansible
become: yes
gather_facts: false
roles:
- role: app_deploy_application_server_restart
param_name: production
param_group: "{{ group_id|default(0) }}"
tags: app_deploy_application_server_restart
- hosts: _railway_ec2_production_worker
serial: 1
remote_user: ansible
become: yes
gather_facts: false
roles:
- role: app_deploy_worker_server_restart
param_name: production
tags: app_deploy_worker_server_restart