Skip to content

Commit 5d17496

Browse files
Fix xpack dictionary path in the security condition
1 parent 8f1531f commit 5d17496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ansible.builtin.include_tasks: restart_elasticsearch.yaml
2020

2121
- name: Set password for elastic superuser (ES 8 or newer)
22-
when: elasticsearch.version is version('8', '>=') and elasticsearch.xpack.security.enabled
22+
when: elasticsearch.version is version('8', '>=') and elasticsearch["elasticsearch.yml"].xpack.security.enabled
2323
ansible.builtin.include_tasks: password.yaml
2424

2525
- name: Configure ElasticSearch plugins

0 commit comments

Comments
 (0)