Fix rabbitmq perms
If a bootstrap fails at some stage and leaves a rabbitmq_data container on a host, it will not bootstrap again and rabbitmq fails to start due to root permissions on /var/lib/rabbitmq. This patch improves the check for a valid, existing rabbitmq_data Closes-Bug: #1490602 Change-Id: I6a00aaef38b4ab6a60dcfb5ed2f808513b9f8c84
This commit is contained in:
parent
d4fc93d883
commit
77466a292d
@ -1,7 +1,7 @@
|
||||
---
|
||||
# TODO(SamYaple): Improve check with a custom docker module to check if alive
|
||||
- name: Checking if a rabbitmq_data exists
|
||||
command: docker inspect rabbitmq_data
|
||||
command: docker exec rabbitmq_data stat /var/lib/rabbitmq/.erlang.cookie
|
||||
register: exists
|
||||
changed_when: False
|
||||
failed_when: False
|
||||
|
Loading…
Reference in New Issue
Block a user