First commit

This commit is contained in:
Fern Garden 2025-05-07 22:12:32 +08:00
commit dc708aa3dd
11 changed files with 340 additions and 0 deletions

View file

@ -0,0 +1,31 @@
- name: Install prerequisite packages
apt:
pkg:
- ca-certificates
- gnupg
- name: Add Docker GPG Key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker repo
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu focal stable
state: present
- name: Install Docker
apt:
update_cache: true
pkg:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-buildx-plugin
- docker-compose-plugin
- name: Add '{{ ansible_user }}' to docker group
user:
name: fern
groups: docker
append: yes