Skip to content
Snippets Groups Projects
Commit f22a201d authored by hofmann's avatar hofmann :speech_balloon:
Browse files

first init

parent 1cd61e7c
No related branches found
No related tags found
No related merge requests found
---
- name: Uninstall old docker version
ansible.builtin.apt:
name: ['docker', 'docker-engine', 'docker.io', 'containered', 'runc']
state: absent
- name: Set up the repository for Docker
ansible.builtin.apt:
name: [
'apt-transport-https',
'ca-certificates',
'curl',
'debian-archive-keyring',
'gnupg',
'lsb-release',
]
state: latest
update_cache: true
- name: Add Dockers official GPG key
ansible.builtin.apt_key:
url: 'https://download.docker.com/linux/debian/gpg'
keyring: '/usr/share/keyrings/docker-archive-keyring.gpg'
- name: set up the stable Docker repository
ansible.builtin.apt_repository:
repo: 'deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian {{ ansible_lsb.codename }} stable'
- name: Install Docker Engine & Compose
ansible.builtin.apt:
name: ['docker-ce', 'docker-ce-cli', 'containerd.io', 'docker-compose']
state: latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment