aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/docker/tasks/ubuntu_bionic.yaml
blob: 32643b1119b69e89877cd836b945a84f4bcd0737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# file: roles/docker/tasks/ubuntu_bionic.yaml

- name: Docker repository - Dependencies
  apt:
    name:
      - 'apt-transport-https'
      - 'ca-certificates'
      - 'software-properties-common'
    state: 'present'
    cache_valid_time: 3600
    install_recommends: False
  tags: install-docker

- name: Docker repository - Add an Apt signing key
  apt_key:
    url: 'https://download.docker.com/linux/ubuntu/gpg'
    state: 'present'
  tags: install-docker

- name: Docker repository - Install APT repository
  apt_repository:
    repo: '{{ docker_apt_repository }}'
    state: '{{ docker_apt_repository_state }}'
    update_cache: True
  tags: install-docker

- name: Install Docker
  apt:
    name: 'docker-{{ docker_edition }}={{ docker_apt_package }}'
    state: '{{ docker_apt_package_state }}'
    force: True
  tags: install-docker