-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.yml
58 lines (51 loc) · 1.16 KB
/
install.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
---
# Targeting specific OSes or distributions:
#
# - `ansible_system` → Linux, BSD, ...
# - `ansible_os_family` → Debian, RedHat, ...
# - `ansible_distribution` → Debian, Ubuntu, RedHat, ...
# - `ansible_distribution_release` → precise, wheezy, ...
# - `ansible_pkg_mgr` → apt, yum, ...
# - `ansible_architecture` → x86_64, x86_32, ...
# Debian
# ------
- name: Adding APT repository key
when: ansible_os_family == 'Debian'
sudo: yes
apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
tags:
- deps
- web
- iojs
- name: Adding APT repository
when: ansible_os_family == 'Debian'
sudo: yes
apt_repository:
repo: "deb https://deb.nodesource.com/iojs_1.x {{ansible_distribution_release}} main"
tags:
- deps
- web
- iojs
- name: Installing io.js
sudo: yes
apt:
name: "iojs={{iojs_version}}"
state: present
update_cache: yes
cache_valid_time: 3600
tags:
- deps
- web
- iojs
- name: Updating NPM
sudo: yes
npm:
name: "npm"
global: yes
state: present
tags:
- deps
- web
- iojs
- npm