kolla-ansible/ansible/roles/rabbitmq/tasks/bootstrap.yml
Paul Bourke 6c238ca3bf Move rabbitmq precheck from start
rabbitmq's start task contains a precheck. This should be part of the
other prechecks for consistency

TrivialFix

Change-Id: I7728ec3f5be3248424d74a4387925b72114b8943
2016-08-26 16:18:04 +01:00

28 lines
836 B
YAML

---
- name: Creating rabbitmq volume
kolla_docker:
action: "create_volume"
common_options: "{{ docker_common_options }}"
name: "rabbitmq"
register: rabbitmq_volume
- name: Running RabbitMQ bootstrap container
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
detach: False
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
RABBITMQ_CLUSTER_COOKIE: "{{ rabbitmq_cluster_cookie }}"
image: "{{ rabbitmq_image_full }}"
labels:
BOOTSTRAP:
name: "rabbitmq_bootstrap"
restart_policy: "never"
volumes:
- "{{ node_config_directory }}/rabbitmq/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"
- "rabbitmq:/var/lib/rabbitmq/"
when: rabbitmq_volume | changed