Files
ansible_playbooks/install_docker.yml
2024-07-16 11:43:26 +02:00

30 lines
691 B
YAML

- name: Install & configure Docker
hosts: athelas
become: true
tasks:
- name: Install ca-certificates & curl
ansible.builtin.package:
name:
- ca-certificates
- curl
- name: Add Docker GPG Key
ansible.builtin.apt_key:
url: https://download.docker.com/linux/debian/gpg
state: present
- name: Add Docker repo
ansible.builtin.apt_repository:
repo: deb https://download.docker.com/linux/debian bookworm stable
state: present
- name: Install Docker
ansible.builtin.package:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin