'prefix' avoids potentially making people confuse 'path' with $PATH.
This commit is contained in:
parent
9ba4a42ff8
commit
472c18c2b4
1 changed files with 5 additions and 5 deletions
|
@ -46,9 +46,9 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: enabled
|
default: enabled
|
||||||
choices: [enabled, disabled]
|
choices: [enabled, disabled]
|
||||||
path:
|
prefix:
|
||||||
description:
|
description:
|
||||||
- Specify a custom path to a Rabbit
|
- Specify a custom prefix to a Rabbit
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
'''
|
'''
|
||||||
|
@ -62,8 +62,8 @@ class RabbitMqPlugins(object):
|
||||||
def __init__(self, module):
|
def __init__(self, module):
|
||||||
self.module = module
|
self.module = module
|
||||||
|
|
||||||
if module.params['path']:
|
if module.params['prefix']:
|
||||||
self._rabbitmq_plugins = module.params['path'] + "/sbin/rabbitmq-plugins"
|
self._rabbitmq_plugins = module.params['prefix'] + "/sbin/rabbitmq-plugins"
|
||||||
else:
|
else:
|
||||||
self._rabbitmq_plugins = module.get_bin_path('rabbitmq-plugins', True)
|
self._rabbitmq_plugins = module.get_bin_path('rabbitmq-plugins', True)
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ def main():
|
||||||
names=dict(required=True, aliases=['name']),
|
names=dict(required=True, aliases=['name']),
|
||||||
new_only=dict(default='no', type='bool'),
|
new_only=dict(default='no', type='bool'),
|
||||||
state=dict(default='enabled', choices=['enabled', 'disabled']),
|
state=dict(default='enabled', choices=['enabled', 'disabled']),
|
||||||
path=dict(required=False, default=None)
|
prefix=dict(required=False, default=None)
|
||||||
)
|
)
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=arg_spec,
|
argument_spec=arg_spec,
|
||||||
|
|
Loading…
Reference in a new issue