-
Notifications
You must be signed in to change notification settings - Fork 0
/
git_update.yml
88 lines (88 loc) · 2.29 KB
/
git_update.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# For all Express servers
---
- hosts: final_git
remote_user: root
gather_facts: no
become: yes
tasks:
###### Git #######
# - name: install git
# apt:
# name: git
# - name: Delete /var/www/ for the git checkout
# shell: sudo rm -rf /var/www/
# - name: Get git checkout
# git:
# repo: 'https://github.com/dmu1313/CSE356P3.git'
# dest: /var/www/
# update: yes
- name: Get git forcefully
shell: |
cd /var/www && sudo git fetch --all && sudo git reset --hard origin/master
args:
chdir: /var/www/
############# npm packages ##############
# - name: Init npm in project directory
# shell: |
# cd /var/www/server/
# sudo npm init -y
# args:
# chdir: /var/www/server/
# - name: Install Express JS
# npm:
# name: express
# global: no
# path: /var/www/server/
# - name: Install NodeMailer
# npm:
# name: nodemailer
# global: no
# path: /var/www/server/
# - name: Install Cookie-Parser
# npm:
# name: cookie-parser
# global: no
# path: /var/www/server
# - name: Install MongoDB npm package
# npm:
# name: mongodb
# global: no
# path: /var/www/server
# - name: Install util npm package
# npm:
# name: util
# global: no
# path: /var/www/server
# - name: Install ElasticSearch npm package
# npm:
# name: "@elastic/elasticsearch"
# global: no
# path: /var/www/server
# - name: Install cassandra driver
# npm:
# name: cassandra-driver
# global: no
# path: /var/www/server/
# - name: Install formidable
# npm:
# name: formidable
# global: no
# path: /var/www/server/
# - name: Install memcached Node client
# npm:
# name: memcached
# global: no
# path: /var/www/server
# - name: Install amqplib
# npm:
# name: amqplib
# global: no
# path: /var/www/server/
# - name: Install log4js
# npm:
# name: log4js
# global: no
# path: /var/www/server
# - name: Change permissions
# shell: |
# sudo chmod 777 /var/www/server