templates/ansible-splash/roles/mq/tasks/main.yml in prometheus-splash-0.4.5 vs templates/ansible-splash/roles/mq/tasks/main.yml in prometheus-splash-0.5.0
- old
+ new
@@ -4,14 +4,27 @@
pkg: rabbitmq-server
state: present
- name: MQ enable rabbitmq plugins
rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing,rabbitmq_federation state=enabled
- notify: restart rabbitmq
+ notify: restart Rabbitmq
+- name: MQ Configuration
+ template:
+ src: rabbitmq-env.conf.j2
+ dest: /etc/rabbitmq/rabbitmq-env.conf
+ owner: rabbitmq
+ group: rabbitmq
+ mode: 0644
+ notify: restart Rabbitmq
+
+- name: MQ Force restart RabbitMQ for conf update directly
+ meta: flush_handlers
+
- name: add Admin users
rabbitmq_user:
+ node: "rabbit@{{ groups['mq'][0] }}"
user: "{{ mq_admin_username }}"
password: "{{ mq_admin_password }}"
tags: administrator,"{{ mq_admin_username }}"
vhost: /
configure_priv: .*
@@ -20,20 +33,23 @@
state: present
- name: remove default guest user
rabbitmq_user:
+ node: "rabbit@{{ groups['mq'][0] }}"
user: guest
state: absent
- name: MQ Configure Splash vhost
rabbitmq_vhost:
+ node: "rabbit@{{ groups['mq'][0] }}"
name: "{{ mq_splash_vhost }}"
state: present
- name: MQ Add Splash service user
rabbitmq_user:
+ node: "rabbit@{{ groups['mq'][0] }}"
user: "{{ mq_splash_username }}"
password: "{{ mq_splash_password }}"
vhost: "{{ mq_splash_vhost}}"
configure_priv: .*
read_priv: .*