How do people generally set up Redis through ansible?

Right now we're using the fairly standard approach of templating the 
configuration files, and using a notify handler to restart redis whenever 
the configuration file changes.

The problem with this is that Redis often rewrites its configuration files; 
for example when a new master is elected.

So if we run a provision again, ansible resets the configuration file to 
its original value (pointing at the old master), and then restarts Redis. 
 Due to the way Redis and our system is set up, that doesn't actually 
appear to be a problem.   The new master has a larger epoch value so the 
restart does not cause the master to change; and our system can tolerate a 
restarting Redis.

It just seems wrong, so I'm curious to here how other people configure 
Redis with ansible.

thanks,
Bryan

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4fdd1310-0b15-4b79-b3e3-131943c223ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to