force creating allow to create date-marked indicies
its useful by defaul and also provide issues due incorrect es-salt-formula actions
see related bug and other refs in this topic
bug: https://mirantis.jira.com/browse/PROD-16661
Change-Id: I8ca7d4358b5ac1935989512cd197cec3155662f5
module.run:
- name: elasticsearch.index_{{ operation }}
- index: {{ index_name }}-{{ curdate }}
module.run:
- name: elasticsearch.index_{{ operation }}
- index: {{ index_name }}-{{ curdate }}
+{%- else %}
+elasticsearch_index_{{ index_name }}_{{ operation }}:
+ module.run:
+ - name: elasticsearch.index_{{ operation }}
+ - index: {{ index_name }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}
-{%- endif %}
\ No newline at end of file