https://github.com/geerlingguy/ansible-role-rabbitmq
Ansible Role - RabbitMQ
https://github.com/geerlingguy/ansible-role-rabbitmq
ansible ansible-role erlang queue rabbitmq rabbitmq-server
Last synced: 6 months ago
JSON representation
Ansible Role - RabbitMQ
- Host: GitHub
- URL: https://github.com/geerlingguy/ansible-role-rabbitmq
- Owner: geerlingguy
- License: mit
- Created: 2017-09-09T05:08:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-01-31T03:25:41.000Z (8 months ago)
- Last Synced: 2025-03-29T18:08:45.735Z (6 months ago)
- Topics: ansible, ansible-role, erlang, queue, rabbitmq, rabbitmq-server
- Homepage: https://galaxy.ansible.com/geerlingguy/rabbitmq/
- Size: 39.1 KB
- Stars: 69
- Watchers: 4
- Forks: 59
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: RabbitMQ
[](https://github.com/geerlingguy/ansible-role-rabbitmq/actions/workflows/ci.yml)
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`):
```yaml
rabbitmq_daemon: rabbitmq-server
rabbitmq_state: started
rabbitmq_enabled: true
```Controls the RabbitMQ daemon's state and whether it starts at boot.
```yaml
rabbitmq_version: "3.9.13"
```The RabbitMQ version to install.
```yaml
rabbitmq_rpm: "rabbitmq-server-{{ rabbitmq_version }}-1.el{{ ansible_distribution_major_version }}.noarch.rpm"
rabbitmq_rpm_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/{{ ansible_distribution_major_version }}/{{ rabbitmq_rpm }}/download"
```(RedHat/CentOS only) Controls the .rpm to install.
```yaml
rabbitmq_apt_repository: "deb [signed-by=/etc/apt/trusted.gpg.d/rabbitmq-9F4587F226208342.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main"
rabbitmq_apt_gpg_url: "https://ppa.novemberain.com/gpg.9F4587F226208342.key"erlang_apt_repository: "deb [signed-by=/etc/apt/trusted.gpg.d/erlang-E495BB49CC4BBE5B.gpg] https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main"
erlang_apt_gpg_url: "https://ppa.novemberain.com/gpg.E495BB49CC4BBE5B.key"
```(Debian/Ubuntu only) Controls the repository configuration for the installation
## Dependencies
None.
## Example Playbook
```yaml
- 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](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).