2024-07-14 17:11:17 +02:00
|
|
|
- name: Install aptitude
|
2024-07-15 19:27:49 +02:00
|
|
|
apt:
|
|
|
|
name: aptitude
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
2024-07-14 17:11:17 +02:00
|
|
|
|
|
|
|
- name: Install required system packages
|
2024-07-15 19:27:49 +02:00
|
|
|
apt:
|
|
|
|
pkg:
|
|
|
|
- apt-transport-https
|
|
|
|
- ca-certificates
|
|
|
|
- curl
|
|
|
|
- software-properties-common
|
|
|
|
- python3-pip
|
|
|
|
- virtualenv
|
|
|
|
- python3-setuptools
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
2024-07-14 17:11:17 +02:00
|
|
|
|
|
|
|
- name: Add Docker GPG apt Key
|
|
|
|
apt_key:
|
2024-07-15 19:27:49 +02:00
|
|
|
url: https://download.docker.com/linux/ubuntu/gpg
|
|
|
|
state: present
|
2024-07-14 17:11:17 +02:00
|
|
|
|
|
|
|
- name: Add Docker Repository
|
|
|
|
apt_repository:
|
|
|
|
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Update apt and install docker-ce
|
|
|
|
apt:
|
2024-07-15 19:27:49 +02:00
|
|
|
name:
|
|
|
|
- docker-ce
|
|
|
|
- docker-ce-cli
|
|
|
|
- containerd.io
|
|
|
|
- docker-buildx-plugin
|
|
|
|
- docker-compose-plugin
|
2024-07-14 17:11:17 +02:00
|
|
|
|
|
|
|
- name: Install Docker Module for Python
|
2024-07-15 19:27:49 +02:00
|
|
|
pip:
|
|
|
|
name: docker
|
2024-07-15 22:38:40 +02:00
|
|
|
extra_args: --break-system-packages
|