Installs RabbitMQ on Linux.
(Red Hat / CentOS only) Requires the EPEL repository, which can be installed with the geerlingguy.repo-epel role.
Available variables are listed below, along with default values (see defaults/main.yml):
rabbitmq_daemon: rabbitmq-server
rabbitmq_state: started
rabbitmq_enabled: trueControls 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://deb1.rabbitmq.com/rabbitmq-server/{{ ansible_facts.distribution | lower }}/{{ ansible_facts.distribution_release }}"
rabbitmq_apt_gpg_url: "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA"
erlang_apt_repository: "https://deb1.rabbitmq.com/rabbitmq-erlang/{{ ansible_facts.distribution | lower }}/{{ ansible_facts.distribution_release }}"
erlang_apt_gpg_url: "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA"(Debian/Ubuntu only) Controls the repository configuration for the installation
None.
- hosts: rabbitmq
roles:
- name: geerlingguy.repo-epel
when: ansible_facts.os_family == 'RedHat'
- geerlingguy.rabbitmqMIT / BSD
This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.