From d8f92e18746617045dc27f376a8049d6253c8024 Mon Sep 17 00:00:00 2001 From: Omkar Kawade Date: Mon, 18 Dec 2023 12:56:14 -0800 Subject: [PATCH] 434 remove permissions update, add reverse compatibility --- tasks/setup-Debian.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 2415cb1..04b427d 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -44,10 +44,14 @@ ignore_errors: "{{ docker_apt_ignore_key_error }}" when: docker_add_repo | bool -- name: Change permissions for /etc/apt/keyrings/docker.gpg - file: - path: /etc/apt/keyrings/docker.gpg - mode: 'a+r' +- name: Ensure curl is present (on older systems without SNI). + package: name=curl state=present + when: add_repository_key is failed and docker_add_repo | bool + +- name: Add Docker apt key (alternative for older systems without SNI). + shell: > + curl -sSL {{ docker_apt_gpg_key }} | apt-key add - + when: add_repository_key is failed and docker_add_repo | bool - name: Add Docker repository. apt_repository: