ansible/roles/nodejs/tasks/main.yml

21 lines
438 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:
2019-03-11 18:02:29 +01:00
name:
- nodejs
- npm
- build-essential # To build npm packages
2019-03-10 11:10:59 +01:00
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded