|
33 | 33 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
34 | 34 | add -x 'bootstrap.password'
|
35 | 35 | when: "'bootstrap.password' not in es_keystore.stdout_lines"
|
| 36 | + changed_when: false |
36 | 37 | notify:
|
37 | 38 | - Restart Elasticsearch
|
38 | 39 | ignore_errors: "{{ ansible_check_mode }}"
|
|
54 | 55 | echo "{{ elasticsearch_tls_key_passphrase }}" |
|
55 | 56 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
56 | 57 | add -f -x 'xpack.security.http.ssl.keystore.secure_password'
|
| 58 | + changed_when: false |
57 | 59 | when:
|
58 | 60 | - http_ssl_keystore_secure_password.stdout is undefined or elasticsearch_tls_key_passphrase != http_ssl_keystore_secure_password.stdout
|
59 | 61 | - elasticsearch_http_security
|
|
65 | 67 | shell: >
|
66 | 68 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
67 | 69 | remove 'xpack.security.http.ssl.keystore.secure_password'
|
| 70 | + changed_when: false |
68 | 71 | when:
|
69 | 72 | - "'xpack.security.http.ssl.keystore.secure_password' in es_keystore.stdout_lines"
|
70 | 73 | - not elasticsearch_http_security
|
|
88 | 91 | echo "{{ elasticsearch_tls_key_passphrase }}" |
|
89 | 92 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
90 | 93 | add -f -x 'xpack.security.http.ssl.truststore.secure_password'
|
| 94 | + changed_when: false |
91 | 95 | when:
|
92 | 96 | - http_ssl_truststore_secure_password.stdout is undefined or elasticsearch_tls_key_passphrase != http_ssl_truststore_secure_password.stdout
|
93 | 97 | - elasticsearch_http_security
|
|
98 | 102 | shell: >
|
99 | 103 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
100 | 104 | remove 'xpack.security.http.ssl.truststore.secure_password'
|
| 105 | + changed_when: false |
101 | 106 | when:
|
102 | 107 | - "'xpack.security.http.ssl.truststore.secure_password' in es_keystore.stdout_lines"
|
103 | 108 | - not elasticsearch_http_security
|
|
121 | 126 | echo "{{ elasticsearch_tls_key_passphrase }}" |
|
122 | 127 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
123 | 128 | add -f -x 'xpack.security.transport.ssl.keystore.secure_password'
|
| 129 | + changed_when: false |
124 | 130 | when:
|
125 | 131 | - transport_ssl_keystore_secure_password.stdout is undefined or elasticsearch_tls_key_passphrase != transport_ssl_keystore_secure_password.stdout
|
126 | 132 | - elasticsearch_security
|
|
131 | 137 | shell: >
|
132 | 138 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
133 | 139 | remove 'xpack.security.transport.ssl.keystore.secure_password'
|
| 140 | + changed_when: false |
134 | 141 | when:
|
135 | 142 | - "'xpack.security.transport.ssl.keystore.secure_password' in es_keystore.stdout_lines"
|
136 | 143 | - not elasticsearch_security
|
|
154 | 161 | echo "{{ elasticsearch_tls_key_passphrase }}" |
|
155 | 162 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
156 | 163 | add -f -x 'xpack.security.transport.ssl.truststore.secure_password'
|
| 164 | + changed_when: false |
157 | 165 | when:
|
158 | 166 | - transport_ssl_truststore_secure_password.stdout is undefined or elasticsearch_tls_key_passphrase != transport_ssl_truststore_secure_password.stdout
|
159 | 167 | - elasticsearch_security
|
|
164 | 172 | shell: >
|
165 | 173 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
166 | 174 | remove 'xpack.security.transport.ssl.truststore.secure_password'
|
| 175 | + changed_when: false |
167 | 176 | when:
|
168 | 177 | - "'xpack.security.transport.ssl.truststore.secure_password' in es_keystore.stdout_lines"
|
169 | 178 | - not elasticsearch_security
|
|
0 commit comments