playbooks/redis/playbook.yml

20 lines
396 B
YAML
Raw Normal View History

---
- 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
2020-04-20 12:43:06 +00:00
restart_policy: "unless-stopped"