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
This commit is contained in:
Marios Andreou 2020-07-08 13:30:29 +03:00
parent 3fb8fe1912
commit 4c178922b2
1 changed files with 2 additions and 1 deletions

View File

@ -4,10 +4,11 @@
name: openvswitch
enabled: true
state: started
- 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') }}"
state: latest
- name: get installed package fact