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:
|
2019-03-23 19:25:04 +01:00
|
|
|
update_cache: true
|
2019-03-11 18:02:29 +01:00
|
|
|
name:
|
|
|
|
- nodejs
|
|
|
|
- npm
|
2019-03-12 17:56:12 +01:00
|
|
|
- build-essential # To build npm packages
|
2019-03-23 19:25:04 +01:00
|
|
|
state: present
|
2019-03-11 15:39:11 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|