2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
bench/playbooks/roles/nodejs/tasks/redhat_family.yml
2018-07-04 10:54:13 +05:30

11 lines
307 B
YAML

---
- name: 'Add Node.js PPA'
tags: 'nodejs'
become: 'yes'
become_method: 'sudo'
shell: "curl --silent --location https://rpm.nodesource.com/setup_{{ node_version }}.x | sudo bash -"
- name: Install node v{{ node_version }}
yum: name=nodejs state=present
when: ansible_os_family == 'RedHat'
...