Merge "yardstick setup ansible, including load_images"
[yardstick.git] / ansible / roles / install_dependencies / tasks / RedHat.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: Install EPEL if needed
16   action: "{{ ansible_pkg_mgr }} name=epel-release state=present"
17   when: ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux']
18
19 - name: Install core packages
20   # we need to recompile the kernel, but we don't need libvirtd it will
21   # run in a container
22   action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
23   with_items:
24     - deltarpm
25     - wget
26     - expect
27     - curl
28     # require python2 version of libselinux-python so ansible can operate in selinux enviroment
29     - libselinux-python
30     - screen
31     - git
32     - socat
33     #
34     - sshpass
35     - qemu-kvm
36     - qemu-img
37     - kpartx
38     - libxslt-devel
39     - libffi-devel
40     - openssl-devel
41     - zeromq2-devel
42     - nginx
43     - uwsgi
44     - uwsgi-plugin-python
45     - supervisor
46     - python-setuptools
47     - libffi-devel
48     - python-devel
49     # don't install kernel-devel here it will trigger unwanted kernel upgrade
50     # Mandatory Packages:
51     # Don't use yum groups, they don't work, expand them manually
52     # CentOS 'Development Tools' group
53 #    - autoconf
54 #    - automake
55 #    - binutils
56 #    - bison
57 #    - flex
58 #    - gcc
59 #    - gcc-c++
60 #    - gettext
61 #    - libtool
62 #    - make
63 #    - patch
64 #    - pkgconfig
65 #    - redhat-rpm-config
66 #    - rpm-build
67 #    - rpm-sign
68     # Fedora 'C Development Tools' group
69     #  don't use ccache, it can get weird for kernel compiles
70 #      - ccache