2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00
bench/playbooks/roles/nodejs/tasks/redhat_family.yml
Ameya Shenoy 348e38f37a
changed node version install from 6 to 8
- broken down the node install into multiple parts based on OS
- change the default node version to be installed from 6 to 8
2018-04-09 15:51:11 +05:30

18 lines
592 B
YAML

---
- name: Import Node source RPM key
rpm_key:
key: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
state: present
when: ansible_os_family == 'RedHat'
- name: Add Node Repo for RedHat
yum:
name: 'https://rpm.nodesource.com/pub_8.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm'
state: present
update_cache: yes
when: ansible_os_family == 'RedHat'
- name: Install node v8
yum: name=nodejs state=present
when: ansible_os_family == 'RedHat'
...