|
|
@ -1,9 +1,29 @@
|
|
|
|
#!/usr/bin/python
|
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# (c) 2015, Manuel Sousa <manuel.sousa@gmail.com>
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# This file is part of Ansible
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is free software: you can redistribute it and/or modify
|
|
|
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ansible is distributed in the hope that it will be useful,
|
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
|
|
|
|
---
|
|
|
|
module: rabbitmq_queue
|
|
|
|
module: rabbitmq_queue
|
|
|
|
author: Manuel Sousa
|
|
|
|
author: 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:
|
|
|
@ -104,7 +124,7 @@ def main():
|
|
|
|
state = dict(default='present', choices=['present', 'absent'], type='str'),
|
|
|
|
state = dict(default='present', choices=['present', 'absent'], type='str'),
|
|
|
|
name = dict(required=True, type='str'),
|
|
|
|
name = dict(required=True, type='str'),
|
|
|
|
login_user = dict(default='guest', type='str'),
|
|
|
|
login_user = dict(default='guest', type='str'),
|
|
|
|
login_password = dict(default='guest', type='str'),
|
|
|
|
login_password = dict(default='guest', type='str', no_log=True),
|
|
|
|
login_host = dict(default='localhost', type='str'),
|
|
|
|
login_host = dict(default='localhost', type='str'),
|
|
|
|
login_port = dict(default='15672', type='str'),
|
|
|
|
login_port = dict(default='15672', type='str'),
|
|
|
|
vhost = dict(default='/', type='str'),
|
|
|
|
vhost = dict(default='/', type='str'),
|
|
|
|