Sha256: f1180d2a4549dc390d5956ba60d2ff0b5a424f3668de9e014fcb69866e12a815

Contents?: true

Size: 1.01 KB

Versions: 23

Compression:

Stored size: 1.01 KB

Contents

# Install Node.js using packages crafted by NodeSource
---
- 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://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present

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

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

- name: Add NodeSource repository preferences
  template:
    src: etc/apt/preferences.d/deb_nodesource_com_node.pref.2
    dest: /etc/apt/preferences.d/deb_nodesource_com_node.pref

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
taperole-1.3.6 vendor/nodesource.node/tasks/main.yml
taperole-1.3.5 vendor/nodesource.node/tasks/main.yml
taperole-1.3.4 vendor/nodesource.node/tasks/main.yml
taperole-1.3.3 vendor/nodesource.node/tasks/main.yml
taperole-1.3.2 vendor/nodesource.node/tasks/main.yml
taperole-1.3.1 vendor/nodesource.node/tasks/main.yml
taperole-1.3.0 vendor/nodesource.node/tasks/main.yml
taperole-1.2.8 vendor/nodesource.node/tasks/main.yml
taperole-1.2.7 vendor/nodesource.node/tasks/main.yml
taperole-1.2.6 vendor/nodesource.node/tasks/main.yml
taperole-1.2.5 vendor/nodesource.node/tasks/main.yml
taperole-1.2.4 vendor/nodesource.node/tasks/main.yml
taperole-1.2.3 vendor/nodesource.node/tasks/main.yml
taperole-1.2.2 vendor/nodesource.node/tasks/main.yml
taperole-1.2.1 vendor/nodesource.node/tasks/main.yml
taperole-1.2.0 vendor/nodesource.node/tasks/main.yml
taperole-1.1.5 vendor/nodesource.node/tasks/main.yml
taperole-1.1.4 vendor/nodesource.node/tasks/main.yml
taperole-1.1.3 vendor/nodesource.node/tasks/main.yml
taperole-1.1.2 vendor/nodesource.node/tasks/main.yml