9 lines
325 B
YAML
9 lines
325 B
YAML
---
|
|
- name: Run redis container
|
|
become: true
|
|
community.docker.docker_container:
|
|
name: "{{ container_name }}"
|
|
image: "{{ image }}"
|
|
command: "{{ shared_cmd + ['--save', '', '--maxmemory', '128mb', '--maxmemory-policy', 'allkeys-lru'] }}"
|
|
networks: "{{ docker_networks }}"
|
|
restart_policy: unless-stopped
|