Fix conditional for python3-tripleoclient in undercloud pre-reqs

The current conditional is failing causing the bug below, let's
instead rely on the ansible_python version. Seen as part of the
work at [1]

Related-Bug: 1886681
[1] https://tree.taiga.io/project/tripleo-ci-board/task/1817

Change-Id: I01c971b8e289e324439edfac8819ed5b3264b9ac
(cherry picked from commit 4c178922b2)
(cherry picked from commit c27075d244)
(cherry picked from commit 44d481df34)
This commit is contained in:
Marios Andreou 2020-07-08 13:30:29 +03:00 committed by Jose Luis Franco
parent db7864ac72
commit a86c9a2815
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
- name: Update needed packages prior the undercloud upgrade
package:
name:
- "{{ 'python-tripleoclient' if use_oooq|bool else 'python3-tripleoclient' }}"
- "{{ (ansible_python.version.major is version('3', '>=')) | ternary('python3-tripleoclient', 'python-tripleoclient') }}"
- "openstack-tripleo-common"
- "openstack-tripleo-heat-templates"
- "openstack-tripleo-validations"