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

32 lines
928 B
YAML
Raw Normal View History

2021-10-11 09:04:57 +00:00
- name: Install apt-transport-https
apt:
name: apt-transport-https
2021-10-11 09:20:27 +00:00
state: present
2021-10-11 09:22:29 +00:00
2021-10-11 09:25:04 +00:00
- 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
2021-10-11 09:36:25 +00:00
keyring: /usr/share/keyrings/docker-archive-keyring.gpg
2021-10-11 09:22:29 +00:00
2021-10-11 09:32:55 +00:00
- 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
2021-10-11 09:22:29 +00:00
- name: Update repositories cache and install "docker-ce" package
apt:
name: docker-ce
update_cache: yes
2021-10-19 16:43:13 +00:00
- name: Update repositories cache and install "docker-ce-cli" package
2021-10-11 09:22:29 +00:00
apt:
name: docker-ce-cli
2021-10-19 16:43:13 +00:00
update_cache: no
2021-10-11 09:22:29 +00:00
2021-10-19 16:43:13 +00:00
- name: Update repositories cache and install "containerd.io" package
2021-10-11 09:22:29 +00:00
apt:
name: containerd.io
2021-10-19 16:43:13 +00:00
update_cache: no
2021-10-11 09:57:34 +00:00