|
13 | 13 | - name: Set bootstrap password # noqa: risky-shell-pipe
|
14 | 14 | ansible.builtin.shell: >
|
15 | 15 | if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
|
16 |
| - echo "{{ elasticsearch_bootstrap_pw }}" | |
| 16 | + echo '{{ elasticsearch_bootstrap_pw }}' | |
17 | 17 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
18 | 18 | add -x 'bootstrap.password'
|
19 | 19 | when: "'bootstrap.password' not in elasticsearch_keystore.stdout_lines"
|
|
39 | 39 | - name: Set xpack.security.http.ssl.keystore.secure_password # noqa: risky-shell-pipe
|
40 | 40 | ansible.builtin.shell: >
|
41 | 41 | if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
|
42 |
| - echo "{{ elasticsearch_tls_key_passphrase }}" | |
| 42 | + echo '{{ elasticsearch_tls_key_passphrase }}' | |
43 | 43 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
44 | 44 | add -f -x 'xpack.security.http.ssl.keystore.secure_password'
|
45 | 45 | changed_when: false
|
|
79 | 79 | - name: Set xpack.security.http.ssl.truststore.secure_password # noqa: risky-shell-pipe
|
80 | 80 | ansible.builtin.shell: >
|
81 | 81 | if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
|
82 |
| - echo "{{ elasticsearch_tls_key_passphrase }}" | |
| 82 | + echo '{{ elasticsearch_tls_key_passphrase }}' | |
83 | 83 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
84 | 84 | add -f -x 'xpack.security.http.ssl.truststore.secure_password'
|
85 | 85 | changed_when: false
|
|
119 | 119 | - name: Set xpack.security.transport.ssl.keystore.secure_password # noqa: risky-shell-pipe
|
120 | 120 | ansible.builtin.shell: >
|
121 | 121 | if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
|
122 |
| - echo "{{ elasticsearch_tls_key_passphrase }}" | |
| 122 | + echo '{{ elasticsearch_tls_key_passphrase }}' | |
123 | 123 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
124 | 124 | add -f -x 'xpack.security.transport.ssl.keystore.secure_password'
|
125 | 125 | changed_when: false
|
|
159 | 159 | - name: Set xpack.security.transport.ssl.truststore.secure_password # noqa: risky-shell-pipe
|
160 | 160 | ansible.builtin.shell: >
|
161 | 161 | if test -n "$(ps -p $$ | grep bash)"; then set -o pipefail; fi;
|
162 |
| - echo "{{ elasticsearch_tls_key_passphrase }}" | |
| 162 | + echo '{{ elasticsearch_tls_key_passphrase }}' | |
163 | 163 | /usr/share/elasticsearch/bin/elasticsearch-keystore
|
164 | 164 | add -f -x 'xpack.security.transport.ssl.truststore.secure_password'
|
165 | 165 | changed_when: false
|
|
0 commit comments