--- - name: Creating rabbitmq volume kolla_docker: action: "create_volume" common_options: "{{ docker_common_options }}" name: "{{ project_name }}" 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: "{{ role_rabbitmq_cluster_cookie }}" RABBITMQ_LOG_DIR: "/var/log/kolla/{{ project_name }}" image: "{{ rabbitmq_image_full }}" labels: BOOTSTRAP: name: "{{ project_name }}_bootstrap" restart_policy: "never" volumes: - "{{ node_config_directory }}/{{ project_name }}/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" - "{{ project_name }}:/var/lib/rabbitmq/" when: rabbitmq_volume | changed