Good day. I want to automate the process of deploying redis (3.0.5) of the cluster, stuck on the installation of the service, I need to bury the sh script that asks for arguments (tcp port, redis.conf location place, etc.) to install the service Tried through the shell: and command: - the output just hangs and waits for input arguments, sudo itself is. Advise how to transfer these arguments from ansible. Thank you in advance

    1 answer 1

    You do not correctly approach the issue.

    1. The essence of Ansible is just to refuse bash scripts if possible.
    2. No need to write bikes when there are already ready-made solutions for almost everything.

    In the case of Redis, there is ansible-redis .

    • I understand and support this principle - for the layering of entities is not the right approach. The fact is that I wanted redis 3 which is not yet present in the turnips and put together a cluster on it. Actually, I don’t know that it’s better to use redis 3 cluster or with sentinel. So far, novice. - dezzinto
    • @dezzinto we write an online game and use Redis for some things. The cluster at Relis too, hmm, raw and unstable. We decided to use sentinel. While there were no problems with him. So, I advise you to try it sentinel. - Suvitruf
    • @dezzinto btw, for the link that I brought, radishes are made from sorts, and not from turnips. - Suvitruf
    • yes - but there is 2.8, although I wrote that I would like to 3 - dezzinto
    • @dezzinto there in github.com/DavidWittman/ansible-redis/blob/master/defaults/… file. Change the version and that's it - Suvitruf