playbooks/rabbitmq/playbook.yml

25 lines
572 B
YAML
Raw Normal View History

2020-10-17 06:58:36 +00:00
#################################################
# 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