playbooks/redis/playbook.yml

19 lines
355 B
YAML
Executable File

---
- hosts: all
become: true
vars_files:
- vars/default.yml
tasks:
- name: Pull default redis image
docker_image:
name: "{{ container_image }}"
source: pull
- name: Create redis container
docker_container:
name: "{{ container_name }}"
image: "{{ container_image }}"
state: started