summaryrefslogtreecommitdiff
path: root/roles/docker/tasks/docker-com.yml
blob: 9a5dfce0eb044eea330bf695d2b5fa6de187fdd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: install apt https transport
  apt:
    name: apt-transport-https
    state: present

- name: add docker apt key
  apt_key:
    data: "{{ lookup('file', 'docker-apt-key.asc') }}"
    state: present

- name: add docker apt repo
  apt_repository:
    repo: "deb https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
    state: present
    filename: docker