Adding a new verification job for testapi UI.
[releng.git] / utils / build-server-ansible / vars / CentOS.yml
1 ############################################################################
2 # Copyright (c) 2016 The Linux Foundation and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ############################################################################
8 ---
9 - name: Ensure old versions of Docker are not installed.
10   package:
11     name: '{{ item }}'
12     state: absent
13   with_items:
14     - docker
15     - docker-common
16     - docker-engine
17
18 - name: Add Docker GPG key.
19   rpm_key:
20     key: https://download.docker.com/linux/centos/gpg
21     state: present
22
23 - name: Ensure epel is installed.
24   yum:
25     name: epel-release
26     state: present
27 - name: Ensure depdencies are installed.
28   yum:
29     name: "{{ item }}"
30     state: present
31   with_items:
32     - python-pip
33     - rpm-build
34     - kernel-headers
35     - libpcap-devel
36     - zlib-devel
37     - numactl-devel
38     - doxygen
39     - python-sphinx
40     - libvirt-devel
41     - python-devel
42     - openssl-devel
43     - python-six
44     - net-tools
45     - bc
46     - sysstat
47     - xmlstarlet
48     - facter
49
50 - name: install the 'Development tools' package group
51   yum:
52     name: "@Development tools"
53     state: present
54
55 - name: Add Docker repository.
56   get_url:
57     url: "{{ docker_yum_repo_url }}"
58     dest: '/etc/yum.repos.d/docker-ce.repo'
59     owner: root
60     group: root
61     mode: 0644
62
63 - name: Configure Docker Edge repo.
64   ini_file:
65     dest: '/etc/yum.repos.d/docker-ce.repo'
66     section: 'docker-ce-edge'
67     option: enabled
68     value: '{{ docker_yum_repo_enable_edge }}'
69
70 - name: Configure Docker Test repo.
71   ini_file:
72     dest: '/etc/yum.repos.d/docker-ce.repo'
73     section: 'docker-ce-test'
74     option: enabled
75     value: '{{ docker_yum_repo_enable_test }}'