summaryrefslogtreecommitdiff
path: root/roles/docker/tasks/docker-com.yml
blob: 92e9b0022617a5bf13bcac421d3b7b99c73c39e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: add repository key
  copy:
    src: docker-com.gpg
    dest: /etc/apt/trusted.gpg.d/docker.gpg
  notify: update apt cache

- name: add repository entry
  copy:
    content: |
      deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable
    dest: /etc/apt/sources.list.d/docker.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers