From b3b5edef70415a3004bf0cae3dcb006d8a88c181 Mon Sep 17 00:00:00 2001 From: Gabriel Preda Date: Tue, 13 Feb 2018 11:50:43 +0200 Subject: [PATCH 1/2] Fix RedHat install - until condition was not correct --- tasks/elasticsearch-RedHat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/elasticsearch-RedHat.yml b/tasks/elasticsearch-RedHat.yml index 588f0ce..3e0e837 100644 --- a/tasks/elasticsearch-RedHat.yml +++ b/tasks/elasticsearch-RedHat.yml @@ -19,7 +19,7 @@ when: es_use_repository register: redhat_elasticsearch_install_from_repo notify: restart elasticsearch - until: '"failed" not in redhat_elasticsearch_install_from_repo' + until: not redhat_elasticsearch_install_from_repo.failed retries: 5 delay: 10 From d0ed1da10753eda07fb659d89c44aaf33eeb4ce7 Mon Sep 17 00:00:00 2001 From: Gabriel Preda Date: Wed, 2 May 2018 11:49:25 +0300 Subject: [PATCH 2/2] * changed condition as suggested by @Crazybus --- tasks/elasticsearch-RedHat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/elasticsearch-RedHat.yml b/tasks/elasticsearch-RedHat.yml index 3e0e837..ba35556 100644 --- a/tasks/elasticsearch-RedHat.yml +++ b/tasks/elasticsearch-RedHat.yml @@ -19,7 +19,7 @@ when: es_use_repository register: redhat_elasticsearch_install_from_repo notify: restart elasticsearch - until: not redhat_elasticsearch_install_from_repo.failed + until: redhat_elasticsearch_install_from_repo.rc == 0 retries: 5 delay: 10