-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinventory.yml
More file actions
56 lines (56 loc) · 1.41 KB
/
inventory.yml
File metadata and controls
56 lines (56 loc) · 1.41 KB
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
---
## @see https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
all:
vars:
## リポジトリ
app_repo: https://github.com/wate/lde.git
## ブランチ名
app_repo_branch: master
## デプロイ先のパス
app_deploy_path: ~/app
## rsyncの--excludeパラメーター
rsync_exclude_opts:
- .git
- .env
- .envrc
- .github
- .devcontainer
- .vagrant
developer:
hosts:
wate.example.com:
vars:
app_repo_branch: "{{ lookup('pipe', 'git rev-parse --abbrev-ref HEAD')}}"
develop:
hosts:
dev.example.com:
# ansible_host: 123.123.123.123
# ansible_port: 1234
# ansible_user: dev_user
# ansible_password: dev_user_password
# ansible_ssh_private_key_file: ~/.ssh/id_rsa
vars:
app_repo_branch: develop
app_env: development
staging:
hosts:
stg.example.com:
# ansible_host: 123.123.123.123
# ansible_port: 1234
# ansible_user: stg_user
# ansible_password: stg_user_password
# ansible_ssh_private_key_file: ~/.ssh/id_rsa
vars:
app_repo_branch: staging
app_env: staging
production:
hosts:
example.com:
# ansible_host: 123.123.123.123
# ansible_port: 1234
# ansible_user: prod_user
# ansible_password: prod_user_password
# ansible_ssh_private_key_file: ~/.ssh/id_rsa
vars:
app_repo_branch: master
app_env: production