Skip to content

Commit

Permalink
rabbitmq: ensuring rmq service is running before rabbitmqctl is execu…
Browse files Browse the repository at this point in the history
…ted (fix)
  • Loading branch information
sk4zuzu committed Jan 4, 2021
1 parent 59a2ad0 commit d9f9493
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

- include_tasks: "install-packages-{{ ansible_os_family | lower }}.yml"

# NOTE: rabbitmqctl start_app, stop_app, join_cluster commands do NOT work when rabbitmq-server instance is down
- name: Ensure rabbitmq-server service is running
systemd:
name: rabbitmq-server
state: started
when:
- not (specification.stop_service | bool)

- include_tasks: "set-erlang-cookie.yml"
when:
- specification.cluster.is_clustered | bool
Expand Down

0 comments on commit d9f9493

Please sign in to comment.