20 lines
438 B
YAML
20 lines
438 B
YAML
---
|
|
- 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:
|
|
name:
|
|
- nodejs
|
|
- npm
|
|
- build-essential # To build npm packages
|
|
update_cache: true
|
|
register: apt_result
|
|
retries: 3
|
|
until: apt_result is succeeded
|