2018-02-01 19:25:04 +01:00
|
|
|
---
|
|
|
|
|
2018-06-25 21:29:45 +02:00
|
|
|
# https://www.rabbitmq.com/install-debian.html#apt-pinning
|
|
|
|
- name: Pin erlang version that rabbitmq supports
|
|
|
|
copy:
|
|
|
|
dest: /etc/apt/preferences.d/erlang
|
|
|
|
content: |
|
|
|
|
Package: erlang*
|
|
|
|
Pin: version 1:20.1-1
|
|
|
|
Pin-Priority: 1000
|
|
|
|
|
|
|
|
Package: esl-erlang
|
|
|
|
Pin: version 1:20.1.7
|
|
|
|
Pin-Priority: 1000
|
|
|
|
|
2018-02-01 19:25:04 +01:00
|
|
|
- name: Install https transport for apt
|
|
|
|
apt: name=apt-transport-https state=latest force=yes
|
|
|
|
|
|
|
|
- name: Add Erlang Solutions public GPG key
|
|
|
|
apt_key: url=https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc state=present
|
|
|
|
|
|
|
|
- name: Add Erlang Solutions repository
|
|
|
|
apt_repository: repo="deb https://packages.erlang-solutions.com/ubuntu {{ ansible_distribution_release }} contrib" filename='erlang-solutions' state=present update_cache=yes
|
|
|
|
|
|
|
|
- name: Add RabbitMQ public GPG key
|
|
|
|
apt_key: url=https://www.rabbitmq.com/rabbitmq-release-signing-key.asc state=present
|
|
|
|
|
|
|
|
- name: Add RabbitMQ repository
|
|
|
|
apt_repository: repo='deb https://dl.bintray.com/rabbitmq/debian {{ ansible_distribution_release }} main' filename='rabbitmq' state=present update_cache=yes
|
|
|
|
|
|
|
|
- name: Install RabbitMQ Server
|
|
|
|
apt: name=rabbitmq-server state=latest
|
|
|
|
|
|
|
|
- name: Start RabbitMQ service
|
|
|
|
service: name=rabbitmq-server state=started
|