Remove INFO file as we've migrated to INFO.yaml
[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
60 - name: Add Docker apt key.
61   apt_key:
62     url: https://download.docker.com/linux/ubuntu/gpg
63     id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
64     state: present
65   register: add_repository_key
66   ignore_errors: true
67
68 - name: Ensure curl is present (on older systems without SNI).
69   package: name=curl state=present
70   when: add_repository_key|failed
71
72 - name: Add Docker apt key (alternative for older systems without SNI).
73   # yamllint disable rule:line-length
74   shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
75   # yamllint enable rule:line-length
76   args:
77     warn: "no"
78   when: add_repository_key|failed
79
80 - name: Add Docker repository.
81   apt_repository:
82     repo: "{{ docker_apt_repository }}"
83     state: present
84     update_cache: "yes"