Fix Python setup when venv is not used

Set packages argument explicitly as a list to avoid "No package matching
'<generator object select_or_reject at 0x7ff25f341750>' is available" error.

Story: 2008378
Task: 41298
Change-Id: Ibe44583cb93b7dca8f5091c893386a15288af915
This commit is contained in:
Piotr Parczewski 2020-11-20 13:08:49 +01:00
parent 074024d63f
commit e748faea00
2 changed files with 6 additions and 1 deletions

View File

@ -89,7 +89,7 @@
- python3-setuptools
- python3-pip
package:
name: "{{ packages | select }}"
name: "{{ packages | select | list }}"
state: present
become: True
when: virtualenv is not defined

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue with Python setup when venv is not used. See `story 2008378
<https://storyboard.openstack.org/#!/story/22008378>`__ for details.