From 9f3d6da436f9a8788dd40b10cb3fe45f55c84714 Mon Sep 17 00:00:00 2001 From: Mickael Ange Date: Tue, 15 Nov 2016 16:03:05 +0800 Subject: [PATCH] Fixed undefined variables when upgrading to Ansible 2.2.0. and the elasticsearch role is skipped using a when condition at the playbook level. --- defaults/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 374ac63..9e01f25 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -29,3 +29,11 @@ es_xpack_features: [] #They do not effect the current configuration es_api_host: "localhost" es_api_port: 9200 + +# Since ansible 2.2 the following variables need to be defined +# to allow the role to be conditionally played with a when condition. +pid_dir: '' +log_dir: '' +work_dir: '' +conf_dir: '' +data_dirs: ''