From ba2ae489f54b996f8f81698d26ea7f8a4ae26131 Mon Sep 17 00:00:00 2001 From: Johan De Meersman Date: Mon, 13 Mar 2017 17:43:45 +0100 Subject: [PATCH] Add check_mode: no to prevent failing in --check mode --- tasks/xpack/elasticsearch-xpack-install.yml | 1 + tasks/xpack/elasticsearch-xpack.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/xpack/elasticsearch-xpack-install.yml b/tasks/xpack/elasticsearch-xpack-install.yml index d7b08d3..4f1c560 100644 --- a/tasks/xpack/elasticsearch-xpack-install.yml +++ b/tasks/xpack/elasticsearch-xpack-install.yml @@ -3,6 +3,7 @@ #Test if feature is installed - shell: "{{es_home}}/bin/plugin list | sed -n '1!p' | grep {{item}}" register: feature_installed + check_mode: no changed_when: False failed_when: "'ERROR' in feature_installed.stdout" ignore_errors: yes diff --git a/tasks/xpack/elasticsearch-xpack.yml b/tasks/xpack/elasticsearch-xpack.yml index 07b68d3..04e0151 100644 --- a/tasks/xpack/elasticsearch-xpack.yml +++ b/tasks/xpack/elasticsearch-xpack.yml @@ -9,6 +9,7 @@ shell: > {{es_home}}/bin/plugin list | tail -n +2 | grep license register: license_installed + check_mode: no ignore_errors: yes failed_when: "'ERROR' in license_installed.stdout" changed_when: False