parent
f4cecaa06a
commit
c0ee0005fa
3 changed files with 14 additions and 7 deletions
@ -1,3 +1,3 @@ |
|||||||
--- |
--- |
||||||
|
|
||||||
nodejs_major_version: 12 |
nodejs_major_version: 13 |
||||||
|
@ -1,10 +1,6 @@ |
|||||||
--- |
--- |
||||||
|
|
||||||
- name: Configure NodeJS repository |
- name: Configure NodeJS repository |
||||||
yum_repository: |
template: src=nodejs.repo.j2 dest=/etc/yum.repos.d/nodejs.repo |
||||||
name: nodejs |
tags: repo |
||||||
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 |
|
||||||
|
|
||||||
|
@ -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…
Reference in new issue