Fix copy variables
This commit is contained in:
parent
b792db7bc7
commit
e516472af0
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue