This repository has been archived on 2022-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
docker-traefik/tasks/docker.yml
2021-10-19 18:43:13 +02:00

31 lines
928 B
YAML

- name: Install apt-transport-https
apt:
name: apt-transport-https
state: present
- name: Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
keyring: /usr/share/keyrings/docker-archive-keyring.gpg
- name: Add specified repository into sources list
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable"
state: present
- name: Update repositories cache and install "docker-ce" package
apt:
name: docker-ce
update_cache: yes
- name: Update repositories cache and install "docker-ce-cli" package
apt:
name: docker-ce-cli
update_cache: no
- name: Update repositories cache and install "containerd.io" package
apt:
name: containerd.io
update_cache: no