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 <kevin.carter@rackspace.com>
This commit is contained in:
parent
95db88a9ff
commit
c5e0ed0751
|
@ -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' }}"
|
||||
|
|
Loading…
Reference in New Issue