Skip to content

Commit 9ca4910

Browse files
committed
Merge branch 'main' into development
2 parents 79c3009 + a75748f commit 9ca4910

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/elasticsearch/tasks/elasticsearch-security.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
- name: Fetch ca certificate from ca host to Ansible controller
264264
ansible.builtin.fetch:
265265
src: "{{ elasticstack_ca_dir }}/ca.crt"
266-
dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt"
266+
dest: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ elasticstack_ca_host }}.crt"
267267
flat: yes
268268
when: inventory_hostname == elasticstack_ca_host
269269
tags:
@@ -296,8 +296,8 @@
296296

297297
- name: Copy the ca certificate to elasticsearch nodes
298298
ansible.builtin.copy:
299-
src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca.crt"
300-
dest: "/etc/elasticsearch/certs"
299+
src: "{{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ elasticstack_ca_host }}.crt"
300+
dest: "/etc/elasticsearch/certs/ca.crt"
301301
owner: root
302302
group: elasticsearch
303303
mode: 0640

0 commit comments

Comments
 (0)