From 08512fc17ea49568a58f788d1ed998133a68fd3e Mon Sep 17 00:00:00 2001 From: Julien Mailleret Date: Thu, 5 Sep 2019 10:30:03 +0200 Subject: [PATCH] fix typo I think this typo was here since https://github.com/elastic/ansible-elasticsearch/pull/129/commits/048fd636025a00379d2549c36f8b4bd271a8f832 --- tasks/xpack/security/elasticsearch-security-file.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/xpack/security/elasticsearch-security-file.yml b/tasks/xpack/security/elasticsearch-security-file.yml index a9f1fe0..831d803 100644 --- a/tasks/xpack/security/elasticsearch-security-file.yml +++ b/tasks/xpack/security/elasticsearch-security-file.yml @@ -1,6 +1,8 @@ --- -- name: set fact manage_file_users - set_fact: manage_file_users=es_users is defined and es_users.file is defined and es_users.file.keys() | list | length > 0 +- set_fact: manage_file_users=false + +- set_fact: manage_file_users=true + when: es_users is defined and es_users.file is defined and es_users.file.keys() | list | length > 0 - name: Check if old users file exists stat: