summaryrefslogtreecommitdiff
path: root/roles/elevate/liquidtruth/tasks/nodejs.yml
blob: 7806329877c919f53aadde744961284f52d5b5c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: add repository key
  copy:
    src: nodesource.gpg
    dest: /etc/apt/trusted.gpg.d/nodejs.gpg
  notify: update apt cache

- name: add repository entry
  copy:
    content: |
      deb https://deb.nodesource.com/node_10.x {{ ansible_distribution_release }} main
    dest: /etc/apt/sources.list.d/nodejs.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers

- name: install nodejs
  apt:
    name: nodejs
    state: present