3. Perhaps write some custom facts that get the current state of the
Redis configuration and incorporate them into the template? You
might also find Redis' CONFIG GET/SET/REWRITE commands useful.
--
Morgan Hamill
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1396445081-sup-3584%40al.wesleyan.edu.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/7YEJnysAJaE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I would use custom fact script on each target that queries locally to see if it 'is master', put it in /etc/ansible/facts.d and it will run automatically on gather facts.
I would make sure only 1 master appears when going over the facts, then you can just feed it to the template from the 'fact' and it should not change that in the config (nor restart the server if there aren't any other changes).
Brian Coca