forked from sec4us-training/web-api-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_node.yml
57 lines (45 loc) · 1.25 KB
/
setup_node.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
- name: Node.JS | Adding signing key
apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
state: present
- name: Node.JS | Install the nodejs LTS repos
apt_repository:
repo: "deb https://deb.nodesource.com/node_{{ nodejs_version }}.x {{ ansible_facts['lsb']['codename'] }} main"
state: present
update_cache: yes
- name: Node.JS | Updating apt cache
apt:
update_cache: yes
- name: Node.JS | Installing
apt:
pkg:
- nodejs
state: latest
- name: Node.JS | Install "npm" node.js package globally
npm:
name: npm
global: yes
- name: Node.JS | Install "pm2" node.js package globally
npm:
name: pm2
global: yes
- name: Node.JS | Install "@angular/cli" node.js package globally
npm:
name: "@angular/cli"
global: yes
- name: Node.JS | Install "apidoc" node.js package globally
npm:
name: apidoc
global: yes
- name: Node.JS | Install "qrcode" node.js package globally
npm:
name: qrcode
global: yes
- name: Node.JS | Install "@aws-sdk/client-s3" node.js package globally
npm:
name: "@aws-sdk/client-s3"
global: yes
- name: Node.JS | Install "@angular-devkit/build-angular" node.js package globally
npm:
name: "@angular-devkit/build-angular"
global: yes