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 264264- name : Fetch ca certificate from ca host to Ansible controller
265265 ansible.builtin.fetch :
266266 src : " {{ elasticstack_ca_dir }}/ca.crt"
267- dest : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca .crt"
267+ dest : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ elasticstack_ca_host }} .crt"
268268 flat : yes
269269 when : inventory_hostname == elasticstack_ca_host
270270 tags :
297297
298298- name : Copy the ca certificate to elasticsearch nodes
299299 ansible.builtin.copy :
300- src : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/ca .crt"
301- dest : " /etc/elasticsearch/certs"
300+ src : " {{ lookup('config', 'DEFAULT_LOCAL_TMP') | dirname }}/{{ elasticstack_ca_host }} .crt"
301+ dest : " /etc/elasticsearch/certs/ca.crt "
302302 owner : root
303303 group : elasticsearch
304304 mode : 0640
You can’t perform that action at this time.
0 commit comments