Skip to content

Commit f8cdb68

Browse files
Merge pull request #3 from punktDe/elasticsearch-environment
Add ES environment variables to the Kibana password command
2 parents 4e74001 + 93b575b commit f8cdb68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/password.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@
2525
ansible.builtin.shell:
2626
cmd: >-
2727
printf "{{ elasticsearch.users.builtin.kibana_system.password }}\n{{ elasticsearch.users.builtin.kibana_system.password }}" |
28+
{% for key, value in (es_env | default({})).items() %}
29+
{{ key }}={{ value | quote }}
30+
{% endfor %}
2831
{{ elasticsearch.prefix.bin }}/elasticsearch-reset-password -b -u kibana_system -i

0 commit comments

Comments
 (0)