From 02d4456166359c25d3450aeecfb7da48c50c1e81 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 29 Jan 2019 21:27:43 -0500 Subject: [PATCH] Add missing variable We don't properly define statsd_npm_name for npm based installs. Also fix npm package installs, to add missing build dependencies. Change-Id: I758ac9e469d4d2170ea0aa7be7194d43b1746f72 Signed-off-by: Paul Belanger --- defaults/main.yaml | 2 ++ tasks/install.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index b46955e..98cb37a 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -37,6 +37,8 @@ statsd_git_version: master statsd_install_method: git +statsd_npm_name: statsd + # tasks/service.yaml statsd_file_statsd_service_manage: true statsd_file_statsd_service_group: root diff --git a/tasks/install.yaml b/tasks/install.yaml index 4005f72..40d14a8 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -22,6 +22,6 @@ package: name: "{{ statsd_build_depends }}" state: present - when: statsd_install_method == 'git' + when: statsd_install_method == 'git' or statsd_install_method == 'pip' - include: "install/{{ statsd_install_method }}.yaml"