Skip to content

Commit 07dfb30

Browse files
committed
fix(roles/elasticsearch): update assert statement for cluster routing disk watermark settings
1 parent 9c4d246 commit 07dfb30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

roles/elasticsearch/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@
125125
elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1
126126
fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage must be a number between 0 and 1'
127127

128-
- name: 'ensure elasticsearch__cluster_routing_allocation_disk_watermark_low < elasticsearch__cluster_routing_allocation_disk_watermark_high < elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage'
128+
- name: 'ensure elasticsearch__cluster_routing_allocation_disk_watermark_low <= elasticsearch__cluster_routing_allocation_disk_watermark_high <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage'
129129
ansible.builtin.assert:
130130
that: >
131-
elasticsearch__cluster_routing_allocation_disk_watermark_low < elasticsearch__cluster_routing_allocation_disk_watermark_high and
132-
elasticsearch__cluster_routing_allocation_disk_watermark_high < elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage
131+
elasticsearch__cluster_routing_allocation_disk_watermark_low <= elasticsearch__cluster_routing_allocation_disk_watermark_high and
132+
elasticsearch__cluster_routing_allocation_disk_watermark_high <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage
133133
fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_low must not exceed elasticsearch__cluster_routing_allocation_disk_watermark_high'
134134

135135
- name: 'deploy /etc/elasticsearch/elasticsearch.yml'

0 commit comments

Comments
 (0)