Skip to content
3 changes: 3 additions & 0 deletions molecule/elasticstack_default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
- name: Include Kibana
include_role:
name: kibana
- name: Include Beats
include_role:
name: beats
14 changes: 6 additions & 8 deletions roles/elasticsearch/tasks/elasticsearch-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
- Restart Elasticsearch
ignore_errors: "{{ ansible_check_mode }}"


- name: Get xpack.security.http.ssl.keystore.secure_password # noqa: risky-shell-pipe
shell: >
if test -v BASH; then set -o pipefail; fi;
Expand Down Expand Up @@ -280,7 +279,6 @@
notify:
- Restart Elasticsearch


- name: Remove xpack.security.http.ssl.keystore.secure_password # noqa: risky-shell-pipe
shell: >
if test -v BASH; then set -o pipefail; fi;
Expand All @@ -294,7 +292,6 @@
notify:
- Restart Elasticsearch


- name: Get xpack.security.http.ssl.truststore.secure_password # noqa: risky-shell-pipe
shell: >
if test -v BASH; then set -o pipefail; fi;
Expand Down Expand Up @@ -568,8 +565,9 @@
cut -d\" -f4
register: es_cluster_status_bootstrap
changed_when: false
no_log: true
when: not elasticsearch_passwords_file.stat.exists | bool
when:
- not elasticsearch_passwords_file.stat.exists | bool
- groups['elasticsearch'] | length > 1
until: es_cluster_status_bootstrap.stdout == "green"
retries: 5
delay: 10
Expand All @@ -594,9 +592,9 @@
cut -d\" -f4
register: es_cluster_status
changed_when: false
# no_log: true
ignore_errors: true
when: elasticsearch_passwords_file.stat.exists | bool
when:
- elasticsearch_passwords_file.stat.exists | bool
- groups['elasticsearch'] | length > 1
until: es_cluster_status.stdout == "green"
retries: 20
delay: 10
Expand Down