No description
Find a file
2025-09-12 04:33:14 +00:00
defaults update common format, update container command 2025-09-12 04:33:14 +00:00
meta initial commit for redis deployment role 2024-04-23 00:23:24 +00:00
tasks update common format, update container command 2025-09-12 04:33:14 +00:00
.gitignore update common format, update container command 2025-09-12 04:33:14 +00:00
README.md initial commit for redis deployment role 2024-04-23 00:23:24 +00:00

ansible-roles-redis

This role is designed to provide a basic redis podman deployment

Task Configuration

- name: Setup redis
  hosts: somehost
  become: true
  roles:
    - role: redis
      redis_db_name: somedatabase
      redis_db_user someuser
      redis_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-redis.service

Deploy

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

Remove

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