beats: fix potential for indexes to be set up incorrectly

If a deployment is running a mix of versions, running once
would only run against a single version, missing out the index
setup for other versions of the beats.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-ops/+/843423

Change-Id: Ib6b0e77b96aec33779062a81dbad0931eeaa8806
This commit is contained in:
Andrew Bonney 2022-05-24 09:32:00 +01:00
parent f2fe9aa59f
commit 27df34985e
2 changed files with 0 additions and 2 deletions

View File

@ -58,7 +58,6 @@
until: templates is success
retries: 5
delay: 5
run_once: true
when:
- (((ansible_local['elastic']['setup'][elastic_beat_name + '_loaded_templates'] is undefined) or
(not (ansible_local['elastic']['setup'][elastic_beat_name + '_loaded_templates'] | bool))) or

View File

@ -7,5 +7,4 @@
include_tasks: "elastic_ilm_update_policy.yml"
environment:
no_proxy: "{{ elastic_beat_no_proxy }},127.0.0.1"
run_once: True
when: (elk_package_state | default('present')) != "latest"