Sha256: ad5998f325723f639a2aaf28ec3a9e9f28fdb8e084e83312d7cb1f063db41578

Contents?: true

Size: 1.37 KB

Versions: 15

Compression:

Stored size: 1.37 KB

Contents

---
- name : MQ install MQ service (RabbitMQ)
  package:
    pkg: rabbitmq-server
    state: present

- name: MQ enable rabbitmq plugins
  rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing,rabbitmq_federation state=enabled
  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: .*
    write_priv: .*
    read_priv: .*
    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: .*
    write_priv: .*
    state: present

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
prometheus-splash-0.9.1 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.9.0 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.6 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.5 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.4 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.3 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.2 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.1 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.8.0 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.7.0 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.6.1 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.6.0 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.5.3 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.5.2 templates/ansible-splash/roles/mq/tasks/main.yml
prometheus-splash-0.5.0 templates/ansible-splash/roles/mq/tasks/main.yml