always gather facts in build-test-packages

Ensure that facts are gathered so that
the user and user_dir settings are correct
and not using root.

Closes-Bug: #1895138
Change-Id: I3b44c75ca42579fdaca7559b0991aed9a24eda4f
This commit is contained in:
Wes Hayutin 2020-09-18 06:33:48 -06:00
parent 506cce15c6
commit 01bc68dd3a
1 changed files with 7 additions and 7 deletions

View File

@ -3,13 +3,13 @@
# needed to avoid potential failure when role is used without gather
- name: gather facts used by role
setup:
gather_subset: "!min,user_dir,python,processor,pkg_mgr,distribution"
when: >
ansible_user_dir is not defined or
ansible_python is not defined or
ansible_processor_vcpus is not defined or
ansible_pkg_mgr is not defined or
ansible_distribution is not defined
gather_subset:
- '!min'
- user_dir
- python
- processor
- pkg_mgr
- distribution
- name: set python_cmd
set_fact: