This commit is contained in:
2025-08-04 18:24:30 +10:00
commit 9c9e8f09da
22 changed files with 533 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
- name: Install required packages
apt:
name: [ "apt-transport-https", "ca-certificates", "curl", "software-properties-common" ]
update_cache: true
- name: Add Docker GPG key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
- name: Install Docker
apt:
name: [ "docker-ce", "docker-compose" ]
state: latest
update_cache: true
- name: Enable Docker service
systemd:
name: docker
enabled: true
state: started