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

-- 
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/CADn%2BHszT_%3DxOLDDEEWRhGuRO4zQ9LmbSsQ1Ns3Ku_zgG5Q3reQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to