diff --git a/roles/kubernetes/tasks/Ubuntu.yml b/roles/kubernetes/tasks/Ubuntu.yml index dd64c04..bd404d6 100644 --- a/roles/kubernetes/tasks/Ubuntu.yml +++ b/roles/kubernetes/tasks/Ubuntu.yml @@ -71,11 +71,13 @@ - name: Download Docker GPG key shell: | - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/containerd.gpg + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ + sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg - name: Add Docker repository (Ubuntu 24 safe) apt_repository: - repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename }} stable" + repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] \ + https://download.docker.com/linux/ubuntu noble stable" state: present filename: docker update_cache: no