]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - tasks/debian.yml
debian: fix the use of 'rabbitmq_debian_version' variable
[github/fretlink/ansible-rabbitmq.git] / tasks / debian.yml
CommitLineData
109c6b75 1---
9a394892
LSJ
2- name: debian | Adding Pre-Reqs
3 apt:
4 name: ['gnupg2']
5 state: present
6 become: true
7 register: result
8 until: result is successful
9
109c6b75
LSJ
10- name: debian | adding RabbitMQ public GPG key to the apt repo
11 apt_key:
12 url: "{{ rabbitmq_debian_repo_key }}"
13 state: present
a67dde50 14 become: true
4353d29a
LSJ
15 register: result
16 until: result is successful
109c6b75
LSJ
17
18- name: debian | adding RabbitMQ repo
19 apt_repository:
20 repo: "{{ rabbitmq_debian_repo }}"
21 state: present
a67dde50 22 become: true
4353d29a
LSJ
23 register: result
24 until: result is successful
109c6b75 25
66ae1a89
GD
26- name: debian | add Rabbitmq erlang repo key
27 apt_key:
28 url: https://bintray.com/user/downloadSubjectPublicKey?username=rabbitmq-erlang
29 state: present
30 become: true
2cf26261
LSJ
31 register: result
32 until: result is successful
66ae1a89
GD
33 when: rabbitmq_debian_erlang_from_rabbit
34
35- name: debian | add Rabbitmq erlang repo
36 apt_repository:
37 repo: deb https://dl.bintray.com/rabbitmq-erlang/debian {{ ansible_distribution_release }} erlang
38 state: present
a67dde50 39 become: true
66ae1a89 40 when: rabbitmq_debian_erlang_from_rabbit
109c6b75
LSJ
41
42- name: debian | installing RabbitMQ server
43 apt:
00f8e282
PB
44 name:
45 - rabbitmq-server{{ (rabbitmq_debian_version is defined) | ternary(['=',rabbitmq_debian_version] | join(''),'') }}
109c6b75 46 state: present
a67dde50 47 become: true
2cf26261
LSJ
48 register: result
49 until: result is successful
109c6b75
LSJ
50
51- name: debian | enabling the RabbitMQ Management Console
52 rabbitmq_plugin:
53 names: rabbitmq_management
54 state: enabled
a67dde50 55 become: true
109c6b75
LSJ
56 notify: restart rabbitmq-server
57
58- name: debian | ensuring that the RabbitMQ service is running
59 service:
60 name: rabbitmq-server
61 state: started
62 enabled: yes
a67dde50 63 become: true