From 0fa01cf876c8e8043746e50f6174dbb64df0902f Mon Sep 17 00:00:00 2001 From: welchwilmerck Date: Wed, 16 Aug 2017 13:20:57 -0400 Subject: [PATCH] Issue 294 - lookup runs on control machine --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24e45e1..adc5ae1 100644 --- a/README.md +++ b/README.md @@ -302,10 +302,10 @@ es_roles: - create_index ``` -* ```es_xpack_license``` - X-Pack license. The license should be declared as a json blob. Alternative use Ansible vault or copy the license to the target machine as part of a playbook and access via a lookup e.g. +* ```es_xpack_license``` - X-Pack license. The license is a json blob. Set the variable directly (possibly protected by Ansible vault) or from a file in the Ansible project on the control machine via a lookup: ``` -es_xpack_license: "{{ lookup('file', '/tmp/license.json') }}" +es_xpack_license: "{{ lookup('file', playbook_dir + '/files/' + es_cluster_name + '/license.json') }}" ``` X-Pack configuration parameters can be added to the elasticsearch.yml file using the normal `es_config` parameter.