|
|
@ -2,13 +2,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
module: rabbitmq_queue
|
|
|
|
module: rabbitmq_queue
|
|
|
|
author: "Manuel Sousa (@manuel-sousa)"
|
|
|
|
author: "Manuel Sousa (@manuel-sousa)"
|
|
|
|
version_added: "2.0"
|
|
|
|
version_added: "2.0"
|
|
|
|
|
|
|
|
|
|
|
|
short_description: This module manages rabbitMQ queues
|
|
|
|
short_description: This module manages rabbitMQ queues
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- This module uses rabbitMQ Rest API to create/delete queues
|
|
|
|
- This module uses rabbitMQ Rest API to create/delete queues
|
|
|
|
requirements: [ python requests ]
|
|
|
|
requirements: [ "requests >= 1.0.0" ]
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -132,7 +132,7 @@ def main():
|
|
|
|
urllib.quote(module.params['vhost'],''),
|
|
|
|
urllib.quote(module.params['vhost'],''),
|
|
|
|
module.params['name']
|
|
|
|
module.params['name']
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Check if queue already exists
|
|
|
|
# Check if queue already exists
|
|
|
|
r = requests.get( url, auth=(module.params['login_user'],module.params['login_password']))
|
|
|
|
r = requests.get( url, auth=(module.params['login_user'],module.params['login_password']))
|
|
|
|
|
|
|
|
|
|
|
|