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