|
|
@ -48,7 +48,7 @@ options:
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
|
timeout:
|
|
|
|
timeout:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Timeout setting: 30s, 1m, 1h...
|
|
|
|
- "Timeout setting: 30s, 1m, 1h..."
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
default: 1m
|
|
|
|
default: 1m
|
|
|
|
plugin_bin:
|
|
|
|
plugin_bin:
|
|
|
@ -62,8 +62,8 @@ options:
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
default: /usr/share/elasticsearch/plugins/
|
|
|
|
default: /usr/share/elasticsearch/plugins/
|
|
|
|
version:
|
|
|
|
version:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Version of the plugin to be installed.
|
|
|
|
- Version of the plugin to be installed.
|
|
|
|
If plugin exists with previous version, it will NOT be updated
|
|
|
|
If plugin exists with previous version, it will NOT be updated
|
|
|
|
required: False
|
|
|
|
required: False
|
|
|
|
default: None
|
|
|
|
default: None
|
|
|
@ -141,7 +141,7 @@ def main():
|
|
|
|
# skip if the state is correct
|
|
|
|
# skip if the state is correct
|
|
|
|
if (present and state == "present") or (state == "absent" and not present):
|
|
|
|
if (present and state == "present") or (state == "absent" and not present):
|
|
|
|
module.exit_json(changed=False, name=name)
|
|
|
|
module.exit_json(changed=False, name=name)
|
|
|
|
|
|
|
|
|
|
|
|
if (version):
|
|
|
|
if (version):
|
|
|
|
name = name + '/' + version
|
|
|
|
name = name + '/' + version
|
|
|
|
|
|
|
|
|
|
|
|