Initial commit of Node.js role

Change-Id: Id65e0c52d469840857b152a5e562e79cbac16781
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
new file mode 100644
index 0000000..af47585
--- /dev/null
+++ b/tasks/Debian.yml
@@ -0,0 +1,23 @@
+---
+# nodejs tasks/Debian.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+- name: Add NodeSource apt repo key
+  apt_key:
+    data: "{{ lookup('file','nodesource.gpg.key') }}"
+    state: "present"
+
+- name: Add NodeSource apt repo
+  apt_repository:
+    repo: "deb https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_lsb['codename'] }} main"
+    mode: "0600"
+    update_cache: true
+
+- name: Install Node.js
+  apt:
+    name: "nodejs"
+    state: "present"
+    update_cache: true
+    cache_valid_time: 3600
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..ae5bde6
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+# nodejs tasks/main.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+- name: include OS-specific vars
+  include_vars: "{{ ansible_os_family }}.yml"
+
+- name: include OS-specific tasks
+  include_tasks: "{{ ansible_os_family }}.yml"