2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 09:14:04 +00:00

[nodejs] move to 6.x

This commit is contained in:
Rushabh Mehta 2016-08-03 12:52:08 +05:30
parent ba772ae51c
commit 42973769f3
2 changed files with 17 additions and 12 deletions

View File

@ -43,18 +43,23 @@
become: yes
become_user: root
- name: Add repo nodejs 5
yum:
name: https://rpm.nodesource.com/pub_5.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
state: present
- name: Get nodejs 6.x bash script
get_url:
url: 'https://rpm.nodesource.com/setup_6.x'
dest: '/tmp/setup_6.x'
mode: 0644
become: yes
become_user: root
- name: Install nodejs v5
- name: Run nodejs 6.x bash script
command: /bin/bash /tmp/setup_6.x
become: yes
become_user: root
- name: Install nodejs
yum:
name: nodejs
state: present
update_cache: yes
become: yes
become_user: root

View File

@ -57,20 +57,20 @@
become: yes
become_user: root
- name: Add nodejs v5 repo
- name: Get nodejs 6.x bash script
get_url:
url: 'https://deb.nodesource.com/setup_5.x'
dest: '/tmp/setup_5.x'
url: 'https://deb.nodesource.com/setup_6.x'
dest: '/tmp/setup_6.x'
mode: 0644
become: yes
become_user: root
- name: Install setup_5.x
command: /bin/bash /tmp/setup_5.x
- name: Run nodejs bash script
command: /bin/bash /tmp/setup_6.x
become: yes
become_user: root
- name: Update and Install Node v5
- name: Install nodejs 6.x
apt:
name: nodejs
state: present