Fix ES API test task until statement. Fix block indentation
This commit is contained in:
parent
d23feddede
commit
af948dff01
@ -5,11 +5,9 @@
|
|||||||
- generate_certs
|
- generate_certs
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
- import_tasks: RedHat.yml
|
- import_tasks: RedHat.yml
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
|
|
||||||
- name: Install OpenDistro
|
- name: Install OpenDistro
|
||||||
package:
|
package:
|
||||||
name: opendistroforelasticsearch-{{ opendistro_version }}
|
name: opendistroforelasticsearch-{{ opendistro_version }}
|
||||||
@ -64,7 +62,9 @@
|
|||||||
return_content: yes
|
return_content: yes
|
||||||
timeout: 4
|
timeout: 4
|
||||||
register: _result
|
register: _result
|
||||||
until: ( _result.json is defined) and (_result.json.status == "green" or ( _result.json.status == "yellow" and single_node ) )
|
until:
|
||||||
|
- _result.json is defined
|
||||||
|
- _result.json.status == "green" or ( _result.json.status == "yellow" and single_node )
|
||||||
retries: 24
|
retries: 24
|
||||||
delay: 5
|
delay: 5
|
||||||
tags: debug
|
tags: debug
|
||||||
@ -81,7 +81,9 @@
|
|||||||
return_content: yes
|
return_content: yes
|
||||||
timeout: 4
|
timeout: 4
|
||||||
register: _result
|
register: _result
|
||||||
until: ( _result.json is defined) and (_result.json.status == "green" or ( _result.json.status == "yellow" and single_node ) )
|
until:
|
||||||
|
- _result.json is defined
|
||||||
|
- _result.json.status == "green" or ( _result.json.status == "yellow" and single_node )
|
||||||
retries: 24
|
retries: 24
|
||||||
delay: 5
|
delay: 5
|
||||||
tags: debug
|
tags: debug
|
||||||
@ -90,5 +92,4 @@
|
|||||||
|
|
||||||
- import_tasks: "RMRedHat.yml"
|
- import_tasks: "RMRedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
when: perform_installation
|
when: perform_installation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user