tls keystores password in elasticsearch.keystore not updated when es_upload_ssl==false #759
Description
Describe the feature:
Elasticsearch version
7.10.2
Role version: fec4907
JVM version: 15.0.1
OS version (uname -a
if on a Unix-like system):
Linux leaves 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
Debian 10 "Buster"
Description of the problem including expected versus actual behaviour:
The changing of elasticsearch-keystore values depends on copy_keystore.changed and/or copy_truststore.changed. These are only set when the stores have been uploaded with es_upload_ssl==true.
The PEM variants of the same are also likely affected.
I started putting together a PR for this that checked whether the ssl/tls keystore/truststore are newer than elasticsearch.keystore and updating the passwords if they were but this is fairly complex change that should probably be discussed first. The changes needed were fairly significant, both PR #684 and PR #757 potentially would conflict. Additionally stating files in ansible is different on *nix and windows.
Playbook:
Any playbook that specifies es_ssl_keystore_password or es_ssl_truststore_password and es_ssl_upload=false.
Provide logs from Ansible:
ES Logs if relevant:
Activity