+---
# tasks file for ansible-rabbitmq
- include: debian.yml
when: ansible_os_family == "Debian"
when: rabbitmq_config_service
- name: checking to see if already clustered
- stat: path=/etc/rabbitmq/clustered
+ stat:
+ path: /etc/rabbitmq/clustered
+ become: true
register: clustered
- include: rabbitmq_clustering.yml
rabbitmq_enable_clustering and
not clustered['stat']['exists']
+- include: rabbitmq_vhosts.yml
+ when: rabbitmq_extra_vhosts is defined
+
- include: rabbitmq_ha_config.yml
when: >
rabbitmq_config_ha and