diff options
author | Larry Smith Jr <mrlesmithjr@gmail.com> | 2017-04-07 23:30:56 -0400 |
---|---|---|
committer | Larry Smith Jr <mrlesmithjr@gmail.com> | 2017-04-07 23:30:56 -0400 |
commit | 3a55d2ab8ab3a399faaf25c4f46e7f2ea142edc6 (patch) | |
tree | 5d96c46e58511bc54cbd046d68fcc80b093cdafd /Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml | |
parent | dcb10e24d902f6d20c811b0f6084b27a15cf3748 (diff) | |
download | ansible-rabbitmq-3a55d2ab8ab3a399faaf25c4f46e7f2ea142edc6.tar.gz ansible-rabbitmq-3a55d2ab8ab3a399faaf25c4f46e7f2ea142edc6.tar.zst ansible-rabbitmq-3a55d2ab8ab3a399faaf25c4f46e7f2ea142edc6.zip |
Updated Vagrant testing
Signed-off-by: Larry Smith Jr <mrlesmithjr@gmail.com>
Diffstat (limited to 'Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml')
-rw-r--r-- | Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml b/Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml index 9dece46..5134c50 100644 --- a/Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml +++ b/Vagrant/roles/ansible-rabbitmq/tasks/rabbitmq_clustering.yml | |||
@@ -1,9 +1,11 @@ | |||
1 | --- | 1 | --- |
2 | - name: rabbitmq_clustering | stopping rabbitmq app | 2 | - name: rabbitmq_clustering | stopping rabbitmq app |
3 | command: rabbitmqctl stop_app | 3 | command: rabbitmqctl stop_app |
4 | when: inventory_hostname != "{{ rabbitmq_master }}" | ||
4 | 5 | ||
5 | - name: rabbitmq_clustering | resetting rabbitmq app | 6 | - name: rabbitmq_clustering | resetting rabbitmq app |
6 | command: rabbitmqctl reset | 7 | command: rabbitmqctl reset |
8 | when: inventory_hostname != "{{ rabbitmq_master }}" | ||
7 | 9 | ||
8 | - name: rabbitmq_clustering | stopping rabbitmq-server | 10 | - name: rabbitmq_clustering | stopping rabbitmq-server |
9 | service: | 11 | service: |
@@ -55,7 +57,7 @@ | |||
55 | when: inventory_hostname != "{{ rabbitmq_master }}" | 57 | when: inventory_hostname != "{{ rabbitmq_master }}" |
56 | 58 | ||
57 | - name: rabbitmq_clustering | joining rabbitmq cluster | 59 | - name: rabbitmq_clustering | joining rabbitmq cluster |
58 | command: rabbitmqctl join_cluster 'rabbit@{{ rabbitmq_master }}' | 60 | command: rabbitmqctl join_cluster "rabbit@{{ hostvars[rabbitmq_master]['ansible_hostname'] }}" |
59 | register: cluster_joined | 61 | register: cluster_joined |
60 | when: inventory_hostname != "{{ rabbitmq_master }}" | 62 | when: inventory_hostname != "{{ rabbitmq_master }}" |
61 | 63 | ||