blob: be8ac6ab44b2fbb2c1a20a6c49b569ca0be1e3ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
- name: install apt https transport
apt:
name: apt-transport-https
state: present
- 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
|