diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-19 09:50:10 -0500 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2018-12-20 00:55:34 -0500 |
commit | 4353d29ae004cea98d3a80ef941aaa155c84bf9a (patch) | |
tree | 964561a22ead9ec868e525ce7f132ecc6d8efaea /tasks/rabbitmq_ha_config.yml | |
parent | c760a03786a2247c14129dfd22c0e0fe1357f094 (diff) | |
download | ansible-rabbitmq-4353d29ae004cea98d3a80ef941aaa155c84bf9a.tar.gz ansible-rabbitmq-4353d29ae004cea98d3a80ef941aaa155c84bf9a.tar.zst ansible-rabbitmq-4353d29ae004cea98d3a80ef941aaa155c84bf9a.zip |
Cleaned up Vagrant and merged new commits
Diffstat (limited to 'tasks/rabbitmq_ha_config.yml')
-rw-r--r-- | tasks/rabbitmq_ha_config.yml | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/tasks/rabbitmq_ha_config.yml b/tasks/rabbitmq_ha_config.yml index 9ebe297..cc31333 100644 --- a/tasks/rabbitmq_ha_config.yml +++ b/tasks/rabbitmq_ha_config.yml | |||
@@ -4,21 +4,30 @@ | |||
4 | path: /usr/sbin/rabbitmqadmin | 4 | path: /usr/sbin/rabbitmqadmin |
5 | register: rabbitmqadmin_check | 5 | register: rabbitmqadmin_check |
6 | 6 | ||
7 | - name: rabbitmq_ha_config | install rabbitMQ admin | 7 | - name: rabbit_ha_config | Installing rabbitMQ admin |
8 | shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin | 8 | get_url: |
9 | url: http://guest:guest@localhost:15672/cli/rabbitmqadmin | ||
10 | dest: /usr/sbin/rabbitmqadmin | ||
11 | mode: u=rwx,g=rw,o=rw | ||
9 | become: true | 12 | become: true |
13 | notify: restart rabbitmq-server | ||
10 | when: not rabbitmqadmin_check['stat']['exists'] | 14 | when: not rabbitmqadmin_check['stat']['exists'] |
11 | 15 | ||
12 | - name: rabbitmq_ha_config | moving the rabbitMQ Admin | 16 | # - name: rabbitmq_ha_config | install rabbitMQ admin |
13 | shell: mv rabbitmqadmin /usr/sbin | 17 | # shell: wget http://guest:guest@localhost:15672/cli/rabbitmqadmin |
14 | become: true | 18 | # become: true |
15 | when: not rabbitmqadmin_check['stat']['exists'] | 19 | # when: not rabbitmqadmin_check['stat']['exists'] |
16 | 20 | ||
17 | - name: rabbitmq_ha_config | making executable rabbitMQ Admin | 21 | # - name: rabbitmq_ha_config | moving the rabbitMQ Admin |
18 | shell: chmod +x /usr/sbin/rabbitmqadmin | 22 | # shell: mv rabbitmqadmin /usr/sbin |
19 | notify: restart rabbitmq-server | 23 | # become: true |
20 | become: true | 24 | # when: not rabbitmqadmin_check['stat']['exists'] |
21 | when: not rabbitmqadmin_check['stat']['exists'] | 25 | |
26 | # - name: rabbitmq_ha_config | making executable rabbitMQ Admin | ||
27 | # shell: chmod +x /usr/sbin/rabbitmqadmin | ||
28 | # notify: restart rabbitmq-server | ||
29 | # become: true | ||
30 | # when: not rabbitmqadmin_check['stat']['exists'] | ||
22 | 31 | ||
23 | - name: rabbitmq_ha_config | creating queue(s) | 32 | - name: rabbitmq_ha_config | creating queue(s) |
24 | command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} --vhost={{ item['vhost'] | default('/') }} | 33 | command: rabbitmqadmin declare queue name={{ item['queue_name'] }} durable={{ item['durable']|lower }} --vhost={{ item['vhost'] | default('/') }} |