Add RTD Verify and Merge jobs for Releng
[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
64 - name: Add Docker apt key.
65   apt_key:
66     url: https://download.docker.com/linux/ubuntu/gpg
67     id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
68     state: present
69   register: add_repository_key
70   ignore_errors: true
71
72 - name: Ensure curl is present (on older systems without SNI).
73   package: name=curl state=present
74   when: add_repository_key|failed
75
76 - name: Add Docker apt key (alternative for older systems without SNI).
77   # yamllint disable rule:line-length
78   shell: "curl -sSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -"
79   # yamllint enable rule:line-length
80   args:
81     warn: "no"
82   when: add_repository_key|failed
83
84 - name: Add Docker repository.
85   apt_repository:
86     repo: "{{ docker_apt_repository }}"
87     state: present
88     update_cache: "yes"