File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
roles/elasticsearch/tasks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 :
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
You can’t perform that action at this time.
0 commit comments