Open-Assistant
Open-Assistant copied to clipboard
Added Redis and Redis Insight to Ansible playbook.
I basically converted the changes in the docker-compose.yaml to the ansible playbook and tweaked it a bit.
I further added an ansible inventory file for local testing and docs.
ran pre-commit before adding the README.md and forgot to run again
Very nice, thank you so much. One question I had was about the config file. Does the docker plugin copy this automatically or do we need to copy it first to the target machine in order to mount it?
I recall vaguely the config file beeing mounted from the working directory into the docker container. If lines 28 and 29 in the playbook work like they would in a usual docker setup, the config should be mounted on startup:
volumes:
- "./redis.conf:/usr/local/etc/redis/redis.conf"
yes, my question is whether the mount is from the working directory on the managed node (in which case we'd have to add some copy action before) or whether ansible does this somehow magically from the working directory of the control node
Ah, I see. I tested this by spinning up an ubuntu container on my local machine an let ansible ssh into it (don't recommend this, annoying). When we provide ansible with a file to mount as a volume, an empty directory gets mounted in the redis instance on my fake remote host. After trying to mount a directory containing a test file as volume, I couldn't see the file in the redis instance either. However all of the above works fine when testing on localhost.
Sharp-eyed of you pointing this out! I stumbled upon something with file/copy in the ansible docs and could dig deeper, when I find time. Who is in charge of deploying to prod anyway?
figured it out :)
thank you :) could you remove your inventory file? then it's perfect
you're welcome, see you on youtube ;)
thank you :)