tripleo-ha-utils/playbooks/overcloud-validate-ha.yml
Raoul Scarazzini 5727f7b8c8 Gather facts also before validate-ha
Since we use the variable ansible_hostname when cycling on the inventory
hosts file, we need to gather_facts from all the overcloud nodes,
otherwise will get an error related to the undefined variable.
This also force us to split the way in which we copy ha-test-suite on
undercloud and overcloud nodes, since the undercloud node can have an
ansible_hostname different from "undercloud".

Change-Id: I3af2895110ccd89209feaa3da0a1b35d6842758e
2017-09-15 04:18:33 -04:00

11 lines
206 B
YAML

---
- name: Gather undercloud and overcloud facts
hosts: undercloud overcloud
gather_facts: yes
- name: Validate overcloud HA status
hosts: undercloud
gather_facts: yes
roles:
- validate-ha