File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1818 name : os
1919 tags : install_base_os_packages
2020
21+ - name : Gather service facts
22+ ansible.builtin.service_facts :
23+
24+ - name : Stop rabbitmq service
25+ ansible.builtin.service :
26+ name : rabbitmq-server
27+ state : stopped
28+ when :
29+ - ansible_facts.services["rabbitmq-server.service"] is defined
30+ - ansible_facts.services["rabbitmq-server.service"].state == "running"
31+
2132- name : Include tasks to install RabbitMQ (online)
2233 ansible.builtin.include_tasks :
2334 file : rabbitmq-online.yml
6172 ansible.builtin.include_tasks :
6273 file : configure-clustering.yml
6374 when : rabbitmq_cluster | bool
64- tags : rabbitmq_cluster
6575
6676# Check if firewalld is running, if it is then open the appropriate ports
67- - name : Gather service facts
68- ansible.builtin.service_facts :
69-
7077- name : Open Port on FirewallD Public Zone
7178 ansible.posix.firewalld :
7279 port : " {{ item }}"
152159 ansible.builtin.include_tasks :
153160 file : enable-clustering.yml
154161 when : rabbitmq_cluster | bool
155- tags : rabbitmq_cluster
156162
157163- name : Get installed erlang version
158164 ansible.builtin.command :
You can’t perform that action at this time.
0 commit comments