d637127b9008e4d77312b202f4c40d5c13d82686
[kuberef.git] / sw_config / bmra / patched_packages.yml
1 ##
2 ##   Copyright (c) 2020-2021 Intel Corporation.
3 ##
4 ##   Licensed under the Apache License, Version 2.0 (the "License");
5 ##   you may not use this file except in compliance with the License.
6 ##   You may obtain a copy of the License at
7 ##
8 ##       http://www.apache.org/licenses/LICENSE-2.0
9 ##
10 ##   Unless required by applicable law or agreed to in writing, software
11 ##   distributed under the License is distributed on an "AS IS" BASIS,
12 ##   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ##   See the License for the specific language governing permissions and
14 ##   limitations under the License.
15 ##
16 ---
17 - name: install packages on RHEL-based distro
18   include_tasks: rhel.yml
19   when: ansible_os_family == "RedHat"
20
21 - name: install packages on Debian-based distro
22   include_tasks: debian.yml
23   when: ansible_os_family == "Debian"
24
25 #net_attach_def, docker registry, cmk reqs
26 - name: upgrade Python wheel and setuptools
27   pip:
28     name:
29       - wheel==0.34.2
30       - setuptools<=44
31     extra_args: --upgrade
32
33 #pinned python package versions
34 - name: install Python packages
35   pip:
36     name:
37       - jmespath==0.9.5
38       - ruamel.yaml.clib==0.2.2
39       - ruamel.yaml==0.16.13
40       - cachetools=={{ (ansible_os_family == 'RedHat' and ansible_distribution_version < '8') | ternary('3.1.1', '4.2.1') }}
41       - openshift==0.11.2
42     state: present
43   register: pip_result
44   retries: 5
45   until: pip_result is succeeded
46   delay: 5