ansible/roles/nodejs/tasks/main.yml

22 lines
457 B
YAML
Raw Normal View History

2019-03-10 11:10:59 +01:00
---
- name: Configure NodeJS pin
when:
- ansible_distribution == 'Debian'
- ansible_distribution_release == 'stretch'
template:
src: apt/nodejs.j2
dest: /etc/apt/preferences.d/nodejs
mode: 0644
- name: Install required packages
apt:
update_cache: true
2019-03-11 18:02:29 +01:00
name:
- nodejs
- npm
- build-essential # To build npm packages
state: present
register: apt_result
retries: 3
until: apt_result is succeeded