Skip to content

use ansible_play_hosts instead of ansible_play_hosts_all

Compare
Choose a tag to compare
@richm richm released this 13 Jun 15:30
df0ab77

s/ansible_play_hosts_all/ansible_play_hosts/ where applicable (#51)

The ha_cluster role is sometimes included within other roles.
In the scenario when a play is run against multiple hosts, and some of
them fail prior to including the ha_cluster role, the ha_cluster role
must continue only on the active hosts. Otherwise, the ha_cluster role
tries to operate on failed nodes and fails.