Skip to content

Commit e1e8f1b

Browse files
committed
rabbitmq issue fixed
1 parent d90ca6d commit e1e8f1b

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

rabbitmq-20-04/rabbitmq.yaml

+25-20
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,47 @@
88
ansible.builtin.apt:
99
update_cache: yes
1010

11-
- name: Installing Dependencies
12-
apt:
13-
name: [ 'curl', 'software-properties-common', 'apt-transport-https', 'lsb-release' ]
14-
state: latest
15-
16-
- name: Import Erlang GPG Key and repo
17-
shell: "{{ item }}"
11+
- name: Install Requried Packages
12+
apt:
13+
name: "{{ item }}"
14+
state: present
1815
with_items:
19-
# - curl -fsSL https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/erlang.gpg
20-
# - echo "deb https://packages.erlang-solutions.com/ubuntu $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/erlang.list
21-
- curl -1sLf https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-erlang.E495BB49CC4BBE5B.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null
22-
- echo "deb [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu jammy main" | tee /etc/apt/sources.list.d/erlang.list
23-
- echo "deb-src [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu jammy main" >> /etc/apt/sources.list.d/erlang.list
24-
16+
- curl
17+
- gnupg
18+
- apt-transport-https
19+
- software-properties-common
20+
- lsb-release
21+
22+
- name: RabbitMQ Erlang
23+
shell: curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.deb.sh' | sudo -E bash
2524

2625
- name: Updating Packages
2726
ansible.builtin.apt:
2827
update_cache: yes
29-
30-
- name: Installing Erlang
31-
apt:
28+
29+
- name: Install Erlang
30+
apt:
3231
name: erlang
3332
state: present
3433

35-
- name: Add RabbitMQ Repository
36-
shell: curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash
34+
- name: Rabbitmq Server
35+
shell: curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash
3736

3837
- name: Updating Packages
3938
ansible.builtin.apt:
4039
update_cache: yes
4140

42-
- name: Installing rabbitmq
43-
apt:
41+
- name: Install Erlang
42+
apt:
4443
name: rabbitmq-server
4544
state: present
4645

46+
- name: start and enable the service
47+
service:
48+
name: rabbitmq-server
49+
state: started
50+
enabled: true
51+
4752
- name: Enable the RabbitMQ Management Web dashboard
4853
shell: sudo rabbitmq-plugins enable rabbitmq_management
4954

0 commit comments

Comments
 (0)