From 9a2fab1840716e0633d0cd6163659379ee5a95fa Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 6 Aug 2019 22:32:45 +0200 Subject: [PATCH] fix npm path --- tasks/install.yml | 2 +- tasks/prepare.yml | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index aee0f95..01c51f9 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -51,7 +51,7 @@ npm: path: "{{ zigbee2mqtt_base_dir }}" environment: - PATH: "{{ __zigbee2mqtt_npm_executable }}:{{ ansible_env.PATH }}" + PATH: "{{ __zigbee2mqtt_npm_executable | dirname }}:{{ ansible_env.PATH }}" when: __zigbee2mqtt_install.changed notify: __zigbee2mqtt_restart when: zigbee2mqtt_version is version(zigbee2mqtt_current_version, ">") diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 231dd0a..b36dec7 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -1,13 +1,5 @@ --- - block: - - name: Debug - command: /usr/local/bin/node --version - changed_when: False - register: __test - - - debug: - msg: "{{ __test }}" - - name: Create local facts dir file: path: /etc/ansible/facts.d