Plugin listed error detection improved

This commit is contained in:
Dale McDiarmid 2016-08-29 17:41:35 +01:00
parent aa284de281
commit 0aa00b477b
3 changed files with 5 additions and 4 deletions

View file

@ -28,5 +28,5 @@
register: elasticsearch_install_from_package register: elasticsearch_install_from_package
# ansible uri module requires httplib2 # ansible uri module requires httplib2
- name: pip httplib2 - name: python-httplib2
apt: deb=python-httplib2 apt: name=python-httplib2

View file

@ -15,7 +15,7 @@
yum: name=elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %} state=present update_cache=yes yum: name=elasticsearch{% if es_version is defined and es_version != "" %}-{{ es_version }}{% endif %} state=present update_cache=yes
when: es_use_repository when: es_use_repository
register: elasticsearch_install_from_repo register: elasticsearch_install_from_repo
until: '"failed" not in es_use_repository' until: '"failed" not in elasticsearch_install_from_repo'
retries: 5 retries: 5
delay: 10 delay: 10
@ -25,5 +25,5 @@
register: elasticsearch_install_from_package register: elasticsearch_install_from_package
# ansible uri module requires python-httplib2 # ansible uri module requires python-httplib2
- name: pip httplib2 - name: python-httplib2
yum: name=python-httplib2 yum: name=python-httplib2

View file

@ -4,6 +4,7 @@
- shell: "{{es_home}}/bin/plugin list | sed -n '1!p' | grep {{item}}" - shell: "{{es_home}}/bin/plugin list | sed -n '1!p' | grep {{item}}"
register: feature_installed register: feature_installed
changed_when: False changed_when: False
failed_when: "'ERROR' in feature_installed.stdout"
ignore_errors: yes ignore_errors: yes
environment: environment:
CONF_DIR: "{{ conf_dir }}" CONF_DIR: "{{ conf_dir }}"