Fixing boolean expression syntax when installing templates/license
This commit is contained in:
parent
32c7a13b69
commit
4f8538a6b7
2 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
status_code: 200
|
status_code: 200
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ lookup('file', item.path) }}"
|
body: "{{ lookup('file', item.path) }}"
|
||||||
when: not es_enable_xpack or not es_xpack_features is defined or not '"security" in es_xpack_features'
|
when: not es_enable_xpack or not es_xpack_features is defined or "security" not in es_xpack_features
|
||||||
with_items: "{{ templates.files }}"
|
with_items: "{{ templates.files }}"
|
||||||
|
|
||||||
- name: Install templates with auth
|
- name: Install templates with auth
|
||||||
|
|
@ -30,5 +30,5 @@
|
||||||
force_basic_auth: yes
|
force_basic_auth: yes
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ lookup('file', item.path) }}"
|
body: "{{ lookup('file', item.path) }}"
|
||||||
when: es_enable_xpack and es_xpack_features is defined and '"security" in es_xpack_features'
|
when: es_enable_xpack and es_xpack_features is defined and "security" in es_xpack_features
|
||||||
with_items: "{{ templates.files }}"
|
with_items: "{{ templates.files }}"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: license_activated
|
register: license_activated
|
||||||
no_log: True
|
no_log: True
|
||||||
when: not '"security" in es_xpack_features'
|
when: "security" not in es_xpack_features
|
||||||
failed_when: >
|
failed_when: >
|
||||||
license_activated.status != 200 or
|
license_activated.status != 200 or
|
||||||
license_activated.json.license_status is not defined or
|
license_activated.json.license_status is not defined or
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: license_activated
|
register: license_activated
|
||||||
no_log: True
|
no_log: True
|
||||||
when: '"security" in es_xpack_features'
|
when: "security" in es_xpack_features
|
||||||
failed_when: >
|
failed_when: >
|
||||||
license_activated.status != 200 or
|
license_activated.status != 200 or
|
||||||
license_activated.json.license_status is not defined or
|
license_activated.json.license_status is not defined or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue