From c074bd2a7bd1a222c3cd6b054466a96eceb67864 Mon Sep 17 00:00:00 2001 From: Niall Byrne Date: Thu, 30 Dec 2021 11:48:38 -0500 Subject: [PATCH] feat(NODEJS): switch to node-build --- README.md | 2 +- defaults/main.yml | 2 +- tasks/plugins_darwin/plugin_tasks/.add_here | 0 tasks/plugins_darwin/plugin_tasks/nodejs.yml | 31 -------------------- 4 files changed, 2 insertions(+), 33 deletions(-) create mode 100644 tasks/plugins_darwin/plugin_tasks/.add_here delete mode 100644 tasks/plugins_darwin/plugin_tasks/nodejs.yml diff --git a/README.md b/README.md index 37920fa..6a82beb 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ To add extra dependencies, simply append your plugin to this list, and add the h ```yaml asdf_darwin_plugin_dependencies: erlang: ["autoconf", "fop", "libyaml", "libxslt", "libtool", "unixodbc", "wxmac"] - nodejs: ["gpg", "gnupg"] + nodejs: ["gpg", "gnupg", "node-build"] php: [] ruby: [] python: ["sqlite3", "xz", "zlib"] diff --git a/defaults/main.yml b/defaults/main.yml index f573427..d638786 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,7 +26,7 @@ asdf_darwin_optional_dependencies: [] asdf_darwin_plugin_dependencies: erlang: ["autoconf", "fop", "libyaml", "libxslt", "libtool", "unixodbc", "wxmac"] - nodejs: ["gpg", "gnupg"] + nodejs: ["gpg", "gnupg", "node-build"] php: [] ruby: [] python: ["sqlite3", "xz", "zlib"] diff --git a/tasks/plugins_darwin/plugin_tasks/.add_here b/tasks/plugins_darwin/plugin_tasks/.add_here new file mode 100644 index 0000000..e69de29 diff --git a/tasks/plugins_darwin/plugin_tasks/nodejs.yml b/tasks/plugins_darwin/plugin_tasks/nodejs.yml deleted file mode 100644 index 47317da..0000000 --- a/tasks/plugins_darwin/plugin_tasks/nodejs.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -- name: Set vars - set_fact: - asdf_nodejs_keyring: "{{ asdf_user_home }}/.asdf/keyrings/nodejs" - -- name: Check if Node.js Keyring already exists - become: True - become_user: "{{ asdf_user }}" - stat: - path: "{{ asdf_nodejs_keyring }}" - register: asdf_nodejs_keyring_path - -- name: Create Keyring for Node.js Keys - become: True - become_user: "{{ asdf_user }}" - file: - path: "{{ asdf_nodejs_keyring }}" - state: directory - owner: "{{ asdf_user }}" - mode: 0700 - when: not asdf_nodejs_keyring_path.stat.exists - -- name: Import Node.js Keys to Keyring - become: True - become_user: "{{ asdf_user }}" - command: "bash -lc '{{ asdf_user_home }}/.asdf/plugins/nodejs/bin/import-release-team-keyring'" - args: - creates: "{{ asdf_nodejs_keyring }}/pubring.gpg" - environment: - GNUPGHOME: "{{ asdf_nodejs_keyring }}" - when: not asdf_nodejs_keyring_path.stat.exists