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:
parent
3fb8fe1912
commit
4c178922b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue