Skip to content

geerlingguy/ansible-role-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.9.13"

The RabbitMQ version to install.

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.

rabbitmq_deb: "rabbitmq-server_{{ rabbitmq_version }}-1_all.deb"
rabbitmq_deb_url: "https://packagecloud.io/rabbitmq/rabbitmq-server/packages/{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}/{{ rabbitmq_deb }}/download"

(Debian/Ubuntu only) Controls the .deb to install.

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.