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 core packages
20 action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
57 - name: Install libc6:arm64 package
58 action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
64 - installation_mode == inst_mode_container
66 - name: Remove dependencies that are no longer required
70 - name: Remove useless packages from the cache
74 # There is a bug with the easy install ansible module in Ubuntu 16.04 linux.
75 # Refer https://github.com/ansible/ansible/issues/23534
77 shell: easy_install -U pip
79 - ansible_distribution == 'Ubuntu'
80 - ansible_distribution_major_version|int <= 16
82 - name: Install python-pip
83 action: "{{ ansible_pkg_mgr }} name=python-pip state=present"
85 - ansible_distribution == 'Ubuntu'
86 - ansible_distribution_major_version|int >= 17
88 - name: Install required docker-py module
92 environment: "{{ proxy_env }}"