From e516472af01f8b17d594818a0ded0fe6634304fa Mon Sep 17 00:00:00 2001 From: Nathan Young Date: Fri, 11 Oct 2019 16:33:09 +0100 Subject: [PATCH] Fix copy variables --- tasks/elasticsearch-ssl.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/elasticsearch-ssl.yml b/tasks/elasticsearch-ssl.yml index 0ded5dc..228435f 100644 --- a/tasks/elasticsearch-ssl.yml +++ b/tasks/elasticsearch-ssl.yml @@ -9,9 +9,11 @@ src: "{{ item }}" dest: "{{ es_ssl_certificate_path }}/{{ item | basename }}" with_items: - - "{{ es_ssl_key }}" - - "{{ es_ssl_certificate }}" + - "{{ es_ssl_keystore }}" + - "{{ es_ssl_truststore }}" when: es_ssl_keystore and es_ssl_truststore + #Restart if these change + notify: restart elasticsearch register: copy_keystores - name: Upload SSL/TLS key and certificate @@ -22,6 +24,8 @@ - "{{ es_ssl_key }}" - "{{ es_ssl_certificate }}" when: es_ssl_key and es_ssl_certificate + #Restart if these change + notify: restart elasticsearch register: copy_certificates - name: Upload SSL Certificate Authority