From c5e0ed0751fa0d620de67cac2074af6191295a40 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Fri, 29 Mar 2019 09:48:33 -0500 Subject: [PATCH] Add fact gathing for hardware when building venvs The python venv build process requires access to facts that from a delegated host to build venvs. This change adds a fact gathering loop to the group "repo_all" if it exists and defaults to the current inventory hostname. This change will allow the build system to gather all facts from all build targets as needed ensuring a successful playbook run. Change-Id: I8a6c60de99360570bd7ae1c1fd8055f99d770c9f Signed-off-by: Kevin Carter --- tasks/python_venv_wheel_build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/python_venv_wheel_build.yml b/tasks/python_venv_wheel_build.yml index 7ef3978..1524eb7 100644 --- a/tasks/python_venv_wheel_build.yml +++ b/tasks/python_venv_wheel_build.yml @@ -13,6 +13,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: gather build target facts + setup: + gather_subset: '!all:hardware' + delegate_to: "{{ item }}" + delegate_facts: true + with_items: "{{ groups['repo_all'] | default([inventory_hostname]) }}" + - name: Build the wheels on the build host delegate_to: "{{ venv_build_host }}" become: "{{ venv_build_host == 'localhost' }}"