Initial commit erasing history
This commit is contained in:
parent
e04f86fd9a
commit
7d8751ffe8
712 changed files with 7348 additions and 0 deletions
4
roles/nodejs/tasks/main.yml
Normal file
4
roles/nodejs/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
18
roles/nodejs/tasks/main_lin.yml
Normal file
18
roles/nodejs/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- name: Add NodeJS repo key
|
||||
apt_key:
|
||||
url: https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
|
||||
keyring: /etc/apt/keyrings/nodesource.gpg
|
||||
|
||||
#- name: Add NodeJS repo url
|
||||
# apt_repository:
|
||||
# repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main"
|
||||
|
||||
- name: Add NodeJS LTS repo url
|
||||
apt_repository:
|
||||
repo: "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main"
|
||||
|
||||
- name: Install NodeJS
|
||||
apt:
|
||||
name: nodejs
|
||||
state: latest
|
||||
|
7
roles/nodejs/tasks/main_win.yml
Normal file
7
roles/nodejs/tasks/main_win.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- name: Install NodeJS
|
||||
win_chocolatey:
|
||||
name: nodejs
|
||||
|
||||
- name: Install NodeJS-LTS
|
||||
win_chocolatey:
|
||||
name: nodejs-lts
|
Loading…
Add table
Add a link
Reference in a new issue