Skip to content

geerlingguy/ansible-role-rabbitmq

Repository files navigation

Ansible Role: RabbitMQ

CI

Installs RabbitMQ on Linux.

Requirements

(Red Hat / CentOS only) Requires the EPEL repository, which can be installed with the geerlingguy.repo-epel role.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

rabbitmq_daemon: rabbitmq-server
rabbitmq_state: started
rabbitmq_enabled: true

Controls the RabbitMQ daemon's state and whether it starts at boot.

rabbitmq_version: "3.12.2"

The RabbitMQ version to install.

rabbitmq_rpm: "rabbitmq-server-{{ rabbitmq_version }}-1.el8.noarch.rpm"
rabbitmq_rpm_url: "https://github.com/rabbitmq/rabbitmq-server/releases/download/v{{ rabbitmq_version }}/{{ rabbitmq_rpm }}"
rabbitmq_rpm_gpg_url: https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

(RedHat/CentOS only) Controls the .rpm to install.

rabbitmq_apt_repository: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-server/deb/{{ ansible_distribution | lower }}"
rabbitmq_apt_gpg_url: "https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-server.9F4587F226208342.key"

erlang_apt_repository: "https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-erlang/deb/{{ ansible_distribution | lower }}"
erlang_apt_gpg_url: "https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-erlang.E495BB49CC4BBE5B.key"

(Debian/Ubuntu only) Controls the repository configuration for the installation

Dependencies

None.

Example Playbook

- hosts: rabbitmq
  roles:
    - name: geerlingguy.repo-epel
      when: ansible_os_family == 'RedHat'
    - geerlingguy.rabbitmq

License

MIT / BSD

Author Information

This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.

Sponsor this project

  •  

Packages

No packages published

Contributors 6

Languages