From c9cd0c3c12da5f1c08eb6df73afaf0605f8ee14c Mon Sep 17 00:00:00 2001 From: cpunch Date: Fri, 22 Nov 2024 03:03:02 -0600 Subject: [PATCH] essential: install docker from docker repository --- roles/essential/tasks/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/roles/essential/tasks/main.yml b/roles/essential/tasks/main.yml index 506f69f..c318240 100644 --- a/roles/essential/tasks/main.yml +++ b/roles/essential/tasks/main.yml @@ -19,6 +19,31 @@ - zsh # :D - 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 package_facts: manager: auto