Sha256: 22048248d13994dda2cd6406d2a9162cb79a8ff45f0d28eba66618a75c8d03bf

Contents?: true

Size: 1005 Bytes

Versions: 15

Compression:

Stored size: 1005 Bytes

Contents

- name: Ensure the system can use the HTTPS transport for APT
  stat:
    path: /usr/lib/apt/methods/https
  register: apt_https_transport

- name: Install HTTPS transport for APT
  apt:
    pkg: apt-transport-https
    state: installed
  when: not apt_https_transport.stat.exists

- name: Import the NodeSource GPG key into apt
  apt_key:
    url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280
    id: "68576280"
    state: present

- name: Add NodeSource deb repository
  apt_repository:
    repo: 'deb https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main'
    state: present

- name: Add NodeSource deb-src repository
  apt_repository:
    repo: 'deb-src https://deb.nodesource.com/node_{{ nodejs_version }} {{ ansible_distribution_release }} main'
    state: present

- name: Install Node.js
  apt:
    pkg: nodejs
    state: installed
    update_cache: yes

- name: Update npm
  command: bash -lc "npm install -g npm"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
taperole-2.1.1 roles/node/tasks/main.yml
taperole-2.1.0 roles/node/tasks/main.yml
taperole-2.0.7 roles/node/tasks/main.yml
taperole-2.0.6 roles/node/tasks/main.yml
taperole-2.0.5 roles/node/tasks/main.yml
taperole-2.0.4 roles/node/tasks/main.yml
taperole-2.0.3 roles/node/tasks/main.yml
taperole-2.0.2 roles/node/tasks/main.yml
taperole-2.0.1 roles/node/tasks/main.yml
taperole-2.0.0 roles/node/tasks/main.yml
taperole-1.8.2 roles/node/tasks/main.yml
taperole-1.8.1 roles/node/tasks/main.yml
taperole-1.8.0 roles/node/tasks/main.yml
taperole-1.7.1 roles/node/tasks/main.yml
taperole-1.7.0 roles/node/tasks/main.yml