--- - 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