From 87ae58e28242c666be44bc518a4117e6a57ab541 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson <12220868+jeremyj563@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:44:29 -0500 Subject: [PATCH 1/2] add default var 'nvm_git_recursive' --- defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index b1c1a0a..597b603 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,3 +20,6 @@ nvm_install_deps: true # allow to change git url for use proxy nvm_git_repository: https://github.com/creationix/nvm.git + +# disable git recursive clone +nvm_git_recursive: false From 508e1f90183de0017ab214a752f1f012746dbe85 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson <12220868+jeremyj563@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:45:54 -0500 Subject: [PATCH 2/2] use 'nvm_git_recursive' in install_nvm tasks --- tasks/install_nvm.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/install_nvm.yml b/tasks/install_nvm.yml index 5c84218..15ca783 100644 --- a/tasks/install_nvm.yml +++ b/tasks/install_nvm.yml @@ -2,6 +2,7 @@ - name: Install nvm {{ nvm_version }} ansible.builtin.git: repo: "{{ nvm_git_repository }}" + recursive: "{{ nvm_git_recursive }}" dest: "{{ nvm_install_path }}" version: "v{{ nvm_version }}" force: "{{ nvm_force_install | bool }}" @@ -10,6 +11,7 @@ - name: Install nvm latest ansible.builtin.git: repo: "{{ nvm_git_repository }}" + recursive: "{{ nvm_git_recursive }}" dest: "{{ nvm_install_path }}" version: "{% if nvm_version == 'latest' %}master{% else %}{{ nvm_version }}{% endif %}" force: "{{ nvm_force_install | bool }}"