|
103 | 103 |
|
104 | 104 | - name: 'ensure 0 <= elasticsearch__cluster_routing_allocation_disk_watermark_low <= 1' |
105 | 105 | ansible.builtin.assert: |
106 | | - that: > |
107 | | - elasticsearch__cluster_routing_allocation_disk_watermark_low is number and |
108 | | - elasticsearch__cluster_routing_allocation_disk_watermark_low >= 0 and |
109 | | - elasticsearch__cluster_routing_allocation_disk_watermark_low <= 1 |
110 | | - fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_low must be a number between 0 and 1' |
| 106 | + that: |
| 107 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_low is number' |
| 108 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_low >= 0' |
| 109 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_low <= 1' |
| 110 | + fail_msg: '`elasticsearch__cluster_routing_allocation_disk_watermark_low: {{ elasticsearch__cluster_routing_allocation_disk_watermark_low }}` must be a number between 0 and 1' |
111 | 111 |
|
112 | 112 | - name: 'ensure 0 <= elasticsearch__cluster_routing_allocation_disk_watermark_high <= 1' |
113 | 113 | ansible.builtin.assert: |
114 | | - that: > |
115 | | - elasticsearch__cluster_routing_allocation_disk_watermark_high is number and |
116 | | - elasticsearch__cluster_routing_allocation_disk_watermark_high >= 0 and |
117 | | - elasticsearch__cluster_routing_allocation_disk_watermark_high <= 1 |
118 | | - fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_high must be a number between 0 and 1' |
| 114 | + that: |
| 115 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_high is number' |
| 116 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_high >= 0' |
| 117 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_high <= 1' |
| 118 | + fail_msg: '`elasticsearch__cluster_routing_allocation_disk_watermark_high: {{ elasticsearch__cluster_routing_allocation_disk_watermark_high }}` must be a number between 0 and 1' |
119 | 119 |
|
120 | 120 | - name: 'ensure 0 <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1' |
121 | 121 | ansible.builtin.assert: |
122 | | - that: > |
123 | | - elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage is number and |
124 | | - elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage >= 0 and |
125 | | - elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1 |
126 | | - fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage must be a number between 0 and 1' |
| 122 | + that: |
| 123 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage is number' |
| 124 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage >= 0' |
| 125 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1' |
| 126 | + fail_msg: '`elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage: {{ elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage }}` must be a number between 0 and 1' |
| 127 | + |
| 128 | + - name: 'ensure 0 <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1' |
| 129 | + ansible.builtin.assert: |
| 130 | + that: |
| 131 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage is number' |
| 132 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage >= 0' |
| 133 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage <= 1' |
| 134 | + fail_msg: '`elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage: {{ elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage }}` must be a number between 0 and 1' |
127 | 135 |
|
128 | 136 | - name: 'ensure elasticsearch__cluster_routing_allocation_disk_watermark_low <= elasticsearch__cluster_routing_allocation_disk_watermark_high <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage' |
129 | 137 | ansible.builtin.assert: |
130 | | - 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 |
| 138 | + that: |
| 139 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_low <= elasticsearch__cluster_routing_allocation_disk_watermark_high' |
| 140 | + - 'elasticsearch__cluster_routing_allocation_disk_watermark_high <= elasticsearch__cluster_routing_allocation_disk_watermark_flood_stage' |
133 | 141 | fail_msg: 'elasticsearch__cluster_routing_allocation_disk_watermark_low must not exceed elasticsearch__cluster_routing_allocation_disk_watermark_high' |
134 | 142 |
|
| 143 | + tags: |
| 144 | + - 'always' |
| 145 | + |
| 146 | + |
| 147 | +- block: |
| 148 | + |
135 | 149 | - name: 'deploy /etc/elasticsearch/elasticsearch.yml' |
136 | 150 | ansible.builtin.template: |
137 | 151 | backup: true |
|
0 commit comments