Merge pull request #523 from SlothOfAnarchy/filter-deprecation-fix

Refactor deprecated version_compare filter calls
This commit is contained in:
Michael Russell 2019-03-11 22:26:37 +09:00 committed by GitHub
commit 8aa1aa1ebf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 18 additions and 18 deletions

View file

@ -21,7 +21,7 @@
- name: Detect if es_version is before X-Pack was open and included
set_fact:
es_open_xpack: false
when: "es_version | version_compare('6.3.0', '<')"
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
set_fact:

View file

@ -20,4 +20,4 @@
- name: Set elasticsearch.keystore Permissions
become: yes
file: state=file path={{ conf_dir }}/elasticsearch.keystore owner={{ es_user }} group={{ es_group }}
when: es_enable_xpack and "security" in es_xpack_features and (es_version | version_compare('6.0.0', '>'))
when: es_enable_xpack and "security" in es_xpack_features and (es_version is version_compare('6.0.0', '>'))

View file

@ -14,7 +14,7 @@
#-----------------------------Create Bootstrap User-----------------------------------
### START BLOCK elasticsearch keystore ###
- name: create the elasticsearch keystore
when: (es_enable_xpack and "security" in es_xpack_features) and (es_version | version_compare('6.0.0', '>'))
when: (es_enable_xpack and "security" in es_xpack_features) and (es_version is version_compare('6.0.0', '>'))
block:
- name: create the keystore if it doesn't exist yet
become: yes