Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ubuntu rmq package #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions files/rabbitmq.bintray.list

This file was deleted.

6 changes: 5 additions & 1 deletion files/rabbitmq.list
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Official repository of rabbitmq
deb http://www.rabbitmq.com/debian/ testing main
deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main

deb https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
deb-src https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
24 changes: 15 additions & 9 deletions tasks/install/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
---
- name: Add bintray rabbitmq repository's key
- name: Add the official rabbitmq repository's key
apt_key:
url: "https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq"
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key"
state: present
when: not rabbitmq_os_package

- name: Add bintray rabbitmq repository
- name: Add the official ereng repository's key
apt_key:
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key"
state: present
when: not rabbitmq_os_package

- name: Add the official rabbitmq repository
copy:
src: rabbitmq.bintray.list
src: rabbitmq.list
dest: /etc/apt/sources.list.d/
backup: true
when: not rabbitmq_os_package

- name: Install rabbitmq-server
apt:
name: rabbitmq-server={{ rabbitmq_package }}
update_cache: true
name: rabbitmq-server
update_cache: yes
state: present
force: true
force: yes

- name: Update locale
command: update-locale LC_ALL=en_US.UTF-8
changed_when: false

- name: Ensure that rabbitmq server is started and enabled
- name: Ensure rabbitmq server is started and enabled
service:
name: rabbitmq-server
state: started
enabled: true
register: rabbitmq_service

- name: Ensure that rabbitmq app is started so we can interact with rabbit
- name: Ensure rabbitmq app is started so we can interact with rabbit
command: rabbitmqctl start_app
when: rabbitmq_service is changed