No description
Find a file
2025-09-12 04:32:49 +00:00
defaults update container command 2025-09-12 04:32:49 +00:00
meta valkey deployment, still need to add smoother support for a config file/password 2024-12-31 07:45:25 +00:00
tasks update container command 2025-09-12 04:32:49 +00:00
.gitignore update container command 2025-09-12 04:32:49 +00:00
README.md valkey deployment, still need to add smoother support for a config file/password 2024-12-31 07:45:25 +00:00

ansible-roles-valkey

This role is designed to provide a basic valkey podman deployment

Task Configuration

- name: Setup valkey
  hosts: somehost
  become: true
  roles:
    - role: valkey
      valkey_db_name: somedatabase
      valkey_db_user someuser
      valkey_db_password somepassword
    - role: firewalld
      firewalld_add:
        - name: public
          ports:
            - 6379/tcp

Deployment and Removal

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

systemctl --user stop container-valkey.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,valkey --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,valkey --extra-vars "container_state=absent firewall_action=remove" --limit=somehost