UbuntuDesktopConfigure/roles/docker/tasks/main.yml

43 lines
873 B
YAML
Raw Normal View History

2024-07-14 17:11:17 +02:00
- name: Install aptitude
apt:
name: aptitude
state: present
update_cache: true
2024-07-14 17:11:17 +02:00
- name: Install required system packages
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:
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:
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
pip:
name: docker
2024-07-15 22:38:40 +02:00
extra_args: --break-system-packages