Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_rabbitmq_plugin.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright: (c) 2017, Ansible Project
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: win_rabbitmq_plugin
10 short_description: Manage RabbitMQ plugins
11 description:
12 - Manage RabbitMQ plugins.
13 options:
14 names:
15 description:
16 - Comma-separated list of plugin names.
17 type: str
18 required: yes
19 aliases: [ name ]
20 new_only:
21 description:
22 - Only enable missing plugins.
23 - Does not disable plugins that are not in the names list.
24 type: bool
25 default: no
26 state:
27 description:
28 - Specify if plugins are to be enabled or disabled.
29 type: str
30 choices: [ disabled, enabled ]
31 default: enabled
32 prefix:
33 description:
34 - Specify a custom install prefix to a Rabbit.
35 type: str
36 author:
37 - Artem Zinenko (@ar7z1)
38 '''
39
40 EXAMPLES = r'''
41 - name: Enables the rabbitmq_management plugin
42 community.windows.win_rabbitmq_plugin:
43 names: rabbitmq_management
44 state: enabled
45 '''
46
47 RETURN = r'''
48 enabled:
49 description: List of plugins enabled during task run.
50 returned: always
51 type: list
52 sample: ["rabbitmq_management"]
53 disabled:
54 description: List of plugins disabled during task run.
55 returned: always
56 type: list
57 sample: ["rabbitmq_management"]
58 '''