changed the rabbitmq command test
This changes the test for rabbitmq process checking to use a command that would actually be useful. Change-Id: I2b48df8dce4b77c0359ad8f28f544559c3e54f50 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
committed by
Jesse Pretorius
parent
c9773b9d9c
commit
f7b1bfaf18
@@ -121,14 +121,13 @@
|
||||
rabbitmq_cookie_token: secrete
|
||||
post_tasks:
|
||||
- name: Check rabbitmq is running
|
||||
shell: "ps auxf | grep rabbit"
|
||||
delegate_to: 10.100.100.101
|
||||
- name: Check rabbitmq is running
|
||||
shell: "ps auxf | grep rabbit"
|
||||
delegate_to: 10.100.100.102
|
||||
- name: Check rabbitmq is running
|
||||
shell: "ps auxf | grep rabbit"
|
||||
delegate_to: 10.100.100.103
|
||||
command: "pgrep rabbit"
|
||||
delegate_to: "{{ item }}"
|
||||
when: ansible_ssh_host == item
|
||||
with_items:
|
||||
- 10.100.100.101
|
||||
- 10.100.100.102
|
||||
- 10.100.100.103
|
||||
- name: Open rabbitmq.config
|
||||
slurp:
|
||||
src: "/etc/rabbitmq/rabbitmq.config"
|
||||
|
||||
Reference in New Issue
Block a user