From 613299cd31700e78599dedf0f19f78fe4876c207 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Wed, 19 Dec 2018 09:52:51 -0500 Subject: First commit of refactoring --- tasks/rabbitmq_ha_config.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'tasks/rabbitmq_ha_config.yml') diff --git a/tasks/rabbitmq_ha_config.yml b/tasks/rabbitmq_ha_config.yml index d3e4aa2..0048b0c 100644 --- a/tasks/rabbitmq_ha_config.yml +++ b/tasks/rabbitmq_ha_config.yml @@ -13,22 +13,6 @@ notify: restart rabbitmq-server when: not rabbitmqadmin_check['stat']['exists'] -# - name: rabbitmq_ha_config | install rabbitMQ admin -# shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin -# become: true -# when: not rabbitmqadmin_check['stat']['exists'] - -# - name: rabbitmq_ha_config | moving the rabbitMQ Admin -# shell: mv rabbitmqadmin /usr/sbin -# become: true -# when: not rabbitmqadmin_check['stat']['exists'] - -# - name: rabbitmq_ha_config | making executable rabbitMQ Admin -# shell: chmod +x /usr/sbin/rabbitmqadmin -# notify: restart rabbitmq-server -# become: true -# when: not rabbitmqadmin_check['stat']['exists'] - - name: rabbitmq_ha_config | creating queue(s) command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} run_once: true @@ -37,7 +21,7 @@ - name: rabbitmq_ha_config | setting up ha on queue(s) rabbitmq_policy: - name: "ha-all" + name: ha-all pattern: "{{ item['queue_name'] }}" tags: "{{ item['tags'] }}" state: present -- cgit v1.2.3