Ensure minimal host facts are present in build

The host may have busted facts for any number of reasons. This change
gathers required facts on the physical_host prior to requiring them.

Change-Id: I0f12bc0b8d5df8840d232853d9aeaecac2688aa6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-05-14 23:27:23 -05:00
parent 32f3ffdcbc
commit 10146fdf2b
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3

View File

@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Gather physical host facts
setup:
gather_subset: "network,virtual"
delegate_to: "{{ physical_host }}"
delegate_facts: true
run_once: true
- name: Pull systemd version
command: "systemctl --version"
changed_when: false