Hi, maybe a little bit ugly but what about a block in combination with delegate_to and rescue.
http://docs.ansible.com/ansible/playbooks_blocks.html Regards Christian On 2016-11-10 14:37, Mpampis Mpigkonias wrote: > Hello people, > > I have two synced LDAP servers (Master / Master configured). I want to > call a role on one server and try to connect to the second ldap server > to run this role ONLY IF the first server is not reachable for some reason. > > Any idea of how this could be done? > > Thanks in advance. > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/43a47c99-1e73-4e9b-a349-847c02880038%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/43a47c99-1e73-4e9b-a349-847c02880038%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- toscom - the open source company Christian Rusa Breiteneckergasse 32 1230 Wien Mobil: 0699 10205595 Fax: 01 9249633 www.toscom.at [email protected] -- 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/df6d40ac-403e-010a-2eaf-5cb59117986b%40toscom.at. For more options, visit https://groups.google.com/d/optout.
