Search code examples
redisredis-cli

redis: Create cluster with redis-cli non interactively


When trying to create a cluster with redis-cli as follows

redis-cli --cluster create

a prompt comes up asking for configuration confirmation?

Is there a way to script this (preferably in ansible) and run it non-interactively?

I am aware of this topic however it addresses data manipulation which is not the scope of this question.


Solution

  • --cluster-yes is the correct option!