From 5646f7902c374283c39f7484d5f0d69ad86f9f13 Mon Sep 17 00:00:00 2001 From: 040lab <040lab@040Farm.local> Date: Mon, 24 Jul 2023 00:51:31 +0200 Subject: [PATCH 1/2] fix n on rerun of ansible playbook --- tasks/nodejs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/nodejs.yml b/tasks/nodejs.yml index c1ed0f8..3490284 100644 --- a/tasks/nodejs.yml +++ b/tasks/nodejs.yml @@ -12,6 +12,11 @@ path: "{{ rocket_chat_npm_dist }}" register: dist_npm_bin +- name: check for (n) installed + shell: command -v n + register: n_exists + ignore_errors: yes + - name: Ensure node-version-manager (n) is installed (NPM) npm: name: n @@ -19,7 +24,7 @@ executable: "{{ rocket_chat_npm_dist }}" when: ('stat' in dist_npm_bin) and (dist_npm_bin.stat.exists | bool) - + and n_exists is failed - name: Bootstrap node-version-manager from GitHub get_url: url: https://raw.githubusercontent.com/tj/n/master/bin/n From 08686f7c5295e56a652c402a1cc48de41d52b469 Mon Sep 17 00:00:00 2001 From: 040lab <040lab@040Farm.local> Date: Mon, 24 Jul 2023 00:57:12 +0200 Subject: [PATCH 2/2] update linespacing --- tasks/nodejs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/nodejs.yml b/tasks/nodejs.yml index 3490284..bd55b79 100644 --- a/tasks/nodejs.yml +++ b/tasks/nodejs.yml @@ -25,6 +25,7 @@ when: ('stat' in dist_npm_bin) and (dist_npm_bin.stat.exists | bool) and n_exists is failed + - name: Bootstrap node-version-manager from GitHub get_url: url: https://raw.githubusercontent.com/tj/n/master/bin/n