summaryrefslogtreecommitdiffstats
path: root/roles/nodejs/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-22 01:12:54 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-22 01:12:54 +0100
commitfdff3f7e8b2c36025fa51f0fee0da5015c6c3441 (patch)
tree2e7b305b44053f507e8008c591398c38c07776a3 /roles/nodejs/meta
parent0a4675d0086ed7a4b6767255aa3b3f0c5d84acba (diff)
Add nvm/nodejs role w/testing
Diffstat (limited to 'roles/nodejs/meta')
-rw-r--r--roles/nodejs/meta/argument_specs.yml10
-rw-r--r--roles/nodejs/meta/main.yml19
2 files changed, 29 insertions, 0 deletions
diff --git a/roles/nodejs/meta/argument_specs.yml b/roles/nodejs/meta/argument_specs.yml
new file mode 100644
index 00000000..41420690
--- /dev/null
+++ b/roles/nodejs/meta/argument_specs.yml
@@ -0,0 +1,10 @@
+---
+argument_specs:
+ main:
+ description: "Install nvm and nodejs (versions) on Linux distributions"
+ options:
+ python_versions:
+ type: "list"
+ description: "The nvm node versions to install (default to latest lts)"
+ elements: "str"
+ default: ["lts/*"]
diff --git a/roles/nodejs/meta/main.yml b/roles/nodejs/meta/main.yml
new file mode 100644
index 00000000..f76250dc
--- /dev/null
+++ b/roles/nodejs/meta/main.yml
@@ -0,0 +1,19 @@
+---
+dependencies:
+ - role: "bash"
+ - role: "curl"
+galaxy_info:
+ author: "a14m"
+ description: "Install nvm and nodejs (versions) on Linux distributions"
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
+ - name: "Ubuntu"
+ versions:
+ - "noble"
+ - name: "Debian"
+ versions:
+ - "bookworm"