forked from yazz/VisualJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansible_deploy.yml
42 lines (31 loc) · 1004 Bytes
/
ansible_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
---
- name: This is used to deploy the latest version of Yazz publicly
hosts: webservers
vars:
PROCESS: node
tasks:
- name: Kill running processes
shell: "killall node"
ignore_errors: yes
- name: Kill running processes part 2
shell: "killall yazz_app_loop.s"
ignore_errors: yes
- command: git reset --hard origin/master
args:
chdir: /root/visifile
- name: install the latest version of Yazz
git:
repo: 'https://github.com/yazz/visualJS.git'
dest: /root/visifile
- name: build docs
shell:
cmd: asciidoc -d book main.adoc
args:
chdir: /root/visifile/public/visifile/docs/book/
- name: Start Yazz
shell:
cmd: chmod +x yazz_app_loop.sh; ./yazz_app_loop.sh {{ ssl_public_key }} {{ ssl_private_key }} {{ use_host }} {{ ssl_cacert1 }} {{ ssl_cacert2 }} {{ ssl_cacert3 }} &
async: 10
poll: 0
args:
chdir: /root/visifile/