mcelog not longer supported on ubuntu 18.04
[releng.git] / utils / build-server-ansible / vars / Ubuntu.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-engine
16
17 - name: Ensure depdencies are installed.
18   apt:
19     name: "{{ item }}"
20     state: present
21   with_items:
22     - apt-transport-https
23     - ca-certificates
24     - git
25     - build-essential
26     - curl
27     - wget
28     - rpm
29     - fuseiso
30     - createrepo
31     - genisoimage
32     - libfuse-dev
33     - dh-autoreconf
34     - pkg-config
35     - zlib1g-dev
36     - libglib2.0-dev
37     - libpixman-1-dev
38     - python-virtualenv
39     - python-dev
40     - libffi-dev
41     - libssl-dev
42     - libxml2-dev
43     - libxslt1-dev
44     - bc
45     - qemu-kvm
46     - libvirt-bin
47     - ubuntu-vm-builder
48     - bridge-utils
49     - monit
50     - openjdk-8-jre-headless
51     - python-nose
52     - dirmngr
53     - collectd
54     - flex
55     - bison
56     - libnuma-dev
57     - shellcheck
58     - python-pip
59     - sysstat
60     - xmlstarlet
61     - facter
62     - jq
63     - python-tox
64     - collectd-dev
65     - python3
66     - python3-dev
67     - libdpdk-dev
68     - dpdk-dev
69     - fakeroot
70     - devscripts
71     - debhelper
72     - dpkg-dev
73     - po-debconf
74     - dh-systemd
75     - dh-strip-nondeterminism
76     - autotools-dev
77     - libltdl-dev
78     - iptables-dev
79     - javahelper
80     - libatasmart-dev
81     - libcap-dev
82     - libcurl4-gnutls-dev
83     - libdbi0-dev
84     - libesmtp-dev
85     - libganglia1-dev
86     - libgcrypt11-dev
87     - libgps-dev
88     - libhiredis-dev
89     - libi2c-dev
90     - libldap2-dev
91     - liblua5.3-dev
92     - liblvm2-dev
93     - libmemcached-dev
94     - libmodbus-dev
95     - libmnl-dev
96     - libmosquitto-dev
97     - libmysqlclient-dev
98     - libnotify-dev
99     - libopenipmi-dev
100     - liboping-dev
101     - libow-dev
102     - libpcap0.8-dev
103     - libpcap-dev
104     - libperl-dev
105     - libpq-dev
106     - libprotobuf-c-dev
107     - libriemann-client-dev
108     - librdkafka-dev
109     - librabbitmq-dev
110     - librrd-dev
111     - libsensors4-dev
112     - libsigrok-dev
113     - libsnmp-dev
114     - libsnmp9-dev
115     - snmp
116     - snmp-mibs-downloader
117     - snmpd
118     - perl
119     - libtokyocabinet-dev
120     - libtokyotyrant-dev
121     - libudev-dev
122     - libupsclient-dev
123     - libvarnishapi-dev
124     - libvirt-dev
125     - libvirt-daemon
126     - libxen-dev
127     - libyajl-dev
128     - linux-libc-dev
129     - default-jdk
130     - protobuf-c-compiler
131     - openvswitch-switch
132
133 - name: Add Docker apt key.
134   apt_key:
135     url: https://download.docker.com/linux/ubuntu/gpg
136     id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
137     state: present
138   register: add_repository_key
139   ignore_errors: true
140
141 - name: Ensure curl is present (on older systems without SNI).
142   package: name=curl state=present
143   when: add_repository_key|failed
144
145 - name: Add Docker apt key (alternative for older systems without SNI).
146   # yamllint disable rule:line-length
147   shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
148   # yamllint enable rule:line-length
149   args:
150     warn: "no"
151   when: add_repository_key|failed
152
153 - name: Add Docker repository.
154   apt_repository:
155     repo: "{{ docker_apt_repository }}"
156     state: present
157     update_cache: "yes"