From af2237fba42ed5cacbdf487dfcc28e9d04b0b6b6 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Thu, 30 May 2024 15:24:40 -0400 Subject: [PATCH] fix(ansible): add docker repo for ubuntu Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- lab/ansible/setup.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lab/ansible/setup.yml b/lab/ansible/setup.yml index 2c8c1a15..aed03649 100644 --- a/lab/ansible/setup.yml +++ b/lab/ansible/setup.yml @@ -82,6 +82,10 @@ https_proxy: "{{ 'http://192.168.0.1:3128' if inventory_hostname == 'mev' else '' }}" tasks: - ansible.builtin.package: state=present name=python3-pip,sshpass,git + - ansible.builtin.get_url: url=https://download.docker.com/linux/ubuntu/gpg dest=/etc/apt/keyrings/docker.asc mode='0644' force=true + when: ansible_os_family == 'Debian' + - ansible.builtin.apt_repository: state=present repo="deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" + when: ansible_os_family == 'Debian' - ansible.builtin.package: state=absent name=docker.io,docker-doc,docker-compose,docker-compose-v2,podman-docker,containerd,runc - ansible.builtin.package: state=present name=docker-ce,docker-ce-cli,containerd.io,docker-buildx-plugin,docker-compose-plugin - ansible.builtin.systemd: state=started name=docker