Migrate install.sh script to ansible
[yardstick.git] / ansible / roles / install_dependencies_jumphost / tasks / Debian.yml
1 # Copyright (c) 2017 Intel Corporation.
2 #
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
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 ---
15 - name: Update repositories
16   apt:
17     update_cache: yes
18
19 - name: Install core packages
20   action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
21   with_items:
22     - wget
23     - curl
24     - screen
25     - procps
26     - socat
27     - sshpass
28     - sudo
29     - vim
30     - libffi-dev
31     - libfuse-dev
32     - libssl-dev
33     - libxft-dev
34     - libxml2-dev
35     - libxss-dev
36     - libxslt-dev
37     - libxslt1-dev
38     - libzmq-dev
39     - qemu-user-static
40     - qemu-utils
41     - kpartx
42     - python
43     - python-setuptools
44     - python-dev
45     - python-pip
46     - python-libvirt
47     - python-virtualenv
48     - bridge-utils
49     - ebtables
50     - openssl
51     - ccze
52     - nginx-full
53     - uwsgi
54     - uwsgi-plugin-python
55     - supervisor
56     - lsof
57     - nodejs
58     - npm
59     - rabbitmq-server
60
61 - name: Install libc6:arm64 package
62   action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
63   with_items:
64     - libc6:arm64
65   when:
66     - arch is defined
67     - arch != arch_arm64
68     - installation_mode == inst_mode_container
69
70 - name: Remove dependencies that are no longer required
71   apt:
72     update_cache: yes
73
74 - name: Remove useless packages from the cache
75   apt:
76     autoclean: yes