Skip to content

Commit

Permalink
Use FQCN for include_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhorning committed Nov 6, 2023
1 parent 88cb63f commit 152c33f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,35 +182,35 @@
notify: Restart Elasticsearch

# Install custom JARs
- include_tasks: custom-jars.yml
- ansible.builtin.include_tasks: custom-jars.yml
when: elasticsearch_custom_jars is defined

# Configure Elasticsearch Node, depending on version
- include_tasks: configure_2x.yml
- ansible.builtin.include_tasks: configure_2x.yml
when: elasticsearch_version is version_compare('5.0', '<')

- include_tasks: configure_5x.yml
- ansible.builtin.include_tasks: configure_5x.yml
when:
- elasticsearch_version is version_compare('5.0', '>=')
- elasticsearch_version is version_compare('6.0', '<')

- include_tasks: configure_6x.yml
- ansible.builtin.include_tasks: configure_6x.yml
when: elasticsearch_version is version_compare('6.0', '>=')

# Install Plugins with ES 2.0 - 2.4 (ES version 5.0 follows 2.4)
- include_tasks: plugins_2x.yml
- ansible.builtin.include_tasks: plugins_2x.yml
when:
- elasticsearch_version is version_compare('2.0', '>=')
- elasticsearch_version is version_compare('5.0', '<')

# Install Plugins with ES 5.x
- include_tasks: plugins_5x.yml
- ansible.builtin.include_tasks: plugins_5x.yml
when:
- elasticsearch_version is version_compare('5.0', '>=')
- elasticsearch_version is version_compare('6.0', '<')

# Install Plugins with ES 6.x
- include_tasks: plugins_6x.yml
- ansible.builtin.include_tasks: plugins_6x.yml
when:
- elasticsearch_version is version_compare('6.0', '>=')

Expand Down

0 comments on commit 152c33f

Please sign in to comment.