Fix template conditional

This commit is contained in:
Nathan Young 2019-03-27 16:29:22 +00:00 committed by pemontto
parent f051e80d0c
commit 07258e5be5
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@
es_open_xpack: false
when: "es_version is version_compare('6.3.0', '<')"
- name: If this is an older version we need to install X-Pack as a plugin and use a differet users command
- name: If this is an older version we need to install X-Pack as a plugin and use a different users command
set_fact:
es_install_xpack: true
es_xpack_users_command: "x-pack/users"

View file

@ -20,7 +20,7 @@
status_code: 200
body_format: json
body: "{{ lookup('file', item) }}"
when: load_templates.changed and es_start_service and not es_enable_xpack or not es_xpack_features is defined or "security" not in es_xpack_features
when: load_templates.changed and es_start_service and (not es_enable_xpack or not es_xpack_features is defined or "security" not in es_xpack_features)
with_fileglob:
- "{{ es_templates_fileglob | default('') }}"
run_once: True