Update to 2021-02-05 14:00

master
Daniel Berteaud 4 years ago
parent f4cecaa06a
commit c0ee0005fa
  1. 2
      roles/repo_nodejs/defaults/main.yml
  2. 8
      roles/repo_nodejs/tasks/main.yml
  3. 11
      roles/repo_nodejs/templates/nodejs.repo.j2

@ -1,3 +1,3 @@
---
nodejs_major_version: 12
nodejs_major_version: 13

@ -1,10 +1,6 @@
---
- name: Configure NodeJS repository
yum_repository:
name: nodejs
description: Node.js Packages for Enterprise Linux
baseurl: https://rpm.nodesource.com/pub_{{ nodejs_major_version }}.x/el/7/$basearch
gpgcheck: True
gpgkey: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
template: src=nodejs.repo.j2 dest=/etc/yum.repos.d/nodejs.repo
tags: repo

@ -0,0 +1,11 @@
[nodejs]
baseurl = https://rpm.nodesource.com/pub_{{ nodejs_major_version }}.x/el/{{ ansible_distribution_major_version }}/$basearch
gpgcheck = 1
gpgkey = https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
name = Node.js Packages for Enterprise Linux
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '>=') %}
# Workaround a bug in dnf which would make the default module mask
module_hotfixes = true
{% endif %}
Loading…
Cancel
Save