18 lines
445 B
YAML
18 lines
445 B
YAML
- name: Create persistence volume
|
|
ansible.builtin.file:
|
|
dest: "{{ volume_path }}"
|
|
state: directory
|
|
mode: '0777'
|
|
|
|
- name: Deploy valkey container
|
|
community.docker.docker_container:
|
|
name: "{{ container_name }}"
|
|
image: bitnami/valkey:latest
|
|
pull: true
|
|
restart_policy: always
|
|
ports:
|
|
- "{{ port }}:6379"
|
|
env:
|
|
ALLOW_EMPTY_PASSWORD: "yes"
|
|
volumes:
|
|
- "{{ volume_path }}:/bitnami/valkey/data" |