playbooks/rabbitmq/playbook.yml
tanshu 5c22100376 New:
Rabbit MQ - needed for barker
2020-10-17 12:28:36 +05:30

25 lines
572 B
YAML
Executable File

#################################################
# DO Community Playbooks: Docker
#################################################
---
- hosts: all
become: true
vars_files:
- vars/default.yml
tasks:
- name: Pull default RabbitMQ image
docker_image:
name: "{{ image_name }}"
source: pull
- name: Create RabbitMQ container
docker_container:
name: "{{ container_name }}"
image: "{{ image_name }}"
state: started
restart_policy: "unless-stopped"
published_ports:
- 5672:5672