mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 11:45:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
3
roles/repo_nodejs/defaults/main.yml
Normal file
3
roles/repo_nodejs/defaults/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
|
||||
nodejs_major_version: 16
|
6
roles/repo_nodejs/tasks/main.yml
Normal file
6
roles/repo_nodejs/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Configure NodeJS repository
|
||||
template: src=nodejs.repo.j2 dest=/etc/yum.repos.d/nodejs.repo
|
||||
tags: repo
|
||||
|
11
roles/repo_nodejs/templates/nodejs.repo.j2
Normal file
11
roles/repo_nodejs/templates/nodejs.repo.j2
Normal file
@@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user