Merge pull request #794 from TuningYourCode/master
Fix to be able to set complex passwords with symbols too
This commit is contained in:
commit
4080da4e0d
@ -21,7 +21,7 @@ output.elasticsearch:
|
||||
|
||||
{% if filebeat_security %}
|
||||
username: {{ indexer_security_user }}
|
||||
password: {{ indexer_security_password }}
|
||||
password: "{{ indexer_security_password }}"
|
||||
protocol: https
|
||||
ssl.certificate_authorities:
|
||||
- {{ filebeat_ssl_dir }}/root-ca.pem
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
|
||||
- name: Configure opensearch.password in opensearch_dashboards.keystore
|
||||
shell: >-
|
||||
echo {{ dashboard_password }} | /usr/share/wazuh-dashboard/bin/opensearch-dashboards-keystore --allow-root add -f --stdin opensearch.password
|
||||
echo '{{ dashboard_password }}' | /usr/share/wazuh-dashboard/bin/opensearch-dashboards-keystore --allow-root add -f --stdin opensearch.password
|
||||
args:
|
||||
executable: /bin/bash
|
||||
become: yes
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
- name: Hashing the custom admin password
|
||||
shell: |
|
||||
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p {{ indexer_admin_password }}
|
||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p '{{ indexer_admin_password }}'
|
||||
register: indexer_admin_password_hashed
|
||||
no_log: '{{ indexer_nolog_sensible | bool }}'
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
- name: Hash the kibanaserver role/user pasword
|
||||
shell: |
|
||||
export JAVA_HOME=/usr/share/wazuh-indexer/jdk
|
||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p {{ dashboard_password }}
|
||||
{{ indexer_sec_plugin_tools_path }}/hash.sh -p '{{ dashboard_password }}'
|
||||
register: indexer_kibanaserver_password_hashed
|
||||
no_log: '{{ indexer_nolog_sensible | bool }}'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user