25 lines
572 B
YAML
Executable File
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
|
|
|