1 # Copyright (c) 2017 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 - name: Update repositories
19 - name: Install dependency for Ubuntu 18
20 action: "{{ ansible_pkg_mgr }} name=libssl1.0-dev state=present"
22 - ansible_distribution == 'Ubuntu'
23 - ansible_distribution_major_version|int >= 17
25 - name: Install core packages
26 action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
63 - name: Install libc6:arm64 package
64 action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
70 - installation_mode == inst_mode_container
72 - name: Remove dependencies that are no longer required
76 - name: Remove useless packages from the cache
80 # There is a bug with the easy install ansible module in Ubuntu 16.04 linux.
81 # Refer https://github.com/ansible/ansible/issues/23534
83 shell: easy_install -U pip
85 - ansible_distribution == 'Ubuntu'
86 - ansible_distribution_major_version|int <= 16
88 - name: Install python-pip
89 action: "{{ ansible_pkg_mgr }} name=python-pip state=present"
91 - ansible_distribution == 'Ubuntu'
92 - ansible_distribution_major_version|int >= 17
94 - name: Uninstall docker as it conflicts with docker-py
100 - name: Install required docker-py module
106 environment: "{{ proxy_env }}"