Skip to content

Commit db7659e

Browse files
committed
Deploy tool
1 parent 261c6da commit db7659e

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

deploy.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,27 @@
33
vars:
44
ansible_python_interpreter: /usr/bin/python3
55
tasks:
6-
- shell: date
6+
# - name: "踏み台へGit pull"
7+
# local_action: git [email protected]:rmanzoku/go-i7q.git version=master dest=./ accept_hostkey=yes depth=1 key_file=~/.ssh/id_rsa
8+
# run_once: yes
9+
10+
- local_action: make chdir=./
11+
run_once: yes
12+
13+
- name: dir
14+
file: path=/home/isucon/go-i7q state=directory mode=0777
15+
become: yes
16+
17+
- name: deploy
18+
copy: src={{ item }} dest=/home/isucon/go-i7q/ mode=0777
19+
with_items:
20+
- bin/i7q
21+
become: yes
22+
23+
# - name: "アプリケーションの起動確認"
24+
# systemd: name={{ appname }}.service state=started
25+
# become: yes
26+
27+
# - name: "アプリケーションの再起動"
28+
# systemd: name={{ appname }}.service state=reloaded
29+
# become: yes

0 commit comments

Comments
 (0)