essential: install docker from docker repository

This commit is contained in:
cpunch 2024-11-22 03:03:02 -06:00
parent 899dc392df
commit c9cd0c3c12

View File

@ -19,6 +19,31 @@
- zsh # :D - zsh # :D
- python3-certbot-nginx - python3-certbot-nginx
- name: Add Docker GPG apt Key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker Repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu focal stable
state: present
- name: Update apt and install Docker packages
apt:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-compose
state: latest
update_cache: true
- name: Start docker
systemd:
name: docker
state: started
- name: Grab package facts - name: Grab package facts
package_facts: package_facts:
manager: auto manager: auto