set templates task to run only if es_templates is true
This commit is contained in:
parent
d145d188e9
commit
11bf8d2d54
3 changed files with 3 additions and 3 deletions
|
|
@ -461,7 +461,7 @@ Both ```es_user_id``` and ```es_group_id``` must be set for the user and group i
|
||||||
* ```es_restart_on_change``` - defaults to true. If false, changes will not result in Elasticsearch being restarted.
|
* ```es_restart_on_change``` - defaults to true. If false, changes will not result in Elasticsearch being restarted.
|
||||||
* ```es_plugins_reinstall``` - defaults to false. If true, all currently installed plugins will be removed from a node. Listed plugins will then be re-installed.
|
* ```es_plugins_reinstall``` - defaults to false. If true, all currently installed plugins will be removed from a node. Listed plugins will then be re-installed.
|
||||||
|
|
||||||
This role ships with sample templates located in the [files/templates/](files/templates) directory. `es_templates_fileglob` variable (defaults to `<role>/files/templates/`) is used with the Ansible [with_fileglob](http://docs.ansible.com/ansible/playbooks_loops.html#id4) loop. When setting the globs, be sure to use an absolute path.
|
This role ships with sample templates located in the [test/integration/files/templates-7.x](test/integration/files/templates-7.x) directory. `es_templates_fileglob` variable is used with the Ansible [with_fileglob](http://docs.ansible.com/ansible/playbooks_loops.html#id4) loop. When setting the globs, be sure to use an absolute path.
|
||||||
|
|
||||||
### Proxy
|
### Proxy
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ es_package_name: "elasticsearch"
|
||||||
es_version_lock: false
|
es_version_lock: false
|
||||||
es_use_repository: true
|
es_use_repository: true
|
||||||
es_add_repository: true
|
es_add_repository: true
|
||||||
es_templates_fileglob: "files/templates-{{ es_major_version }}/*.json"
|
es_templates_fileglob: ""
|
||||||
es_repo_base: "https://artifacts.elastic.co"
|
es_repo_base: "https://artifacts.elastic.co"
|
||||||
es_apt_key: "{{ es_repo_base }}/GPG-KEY-elasticsearch"
|
es_apt_key: "{{ es_repo_base }}/GPG-KEY-elasticsearch"
|
||||||
es_apt_url: "deb {{ es_repo_base }}/packages/{{ es_repo_name }}/apt stable main"
|
es_apt_url: "deb {{ es_repo_base }}/packages/{{ es_repo_name }}/apt stable main"
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,6 @@
|
||||||
#We also do after the native realm to ensure any changes are applied here first and its denf up.
|
#We also do after the native realm to ensure any changes are applied here first and its denf up.
|
||||||
- name: include elasticsearch-template.yml
|
- name: include elasticsearch-template.yml
|
||||||
include: elasticsearch-template.yml
|
include: elasticsearch-template.yml
|
||||||
when: es_templates
|
when: es_templates | bool
|
||||||
tags:
|
tags:
|
||||||
- templates
|
- templates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue