From 263376925b7565a1b9ecc2dc6dd959e3374b0057 Mon Sep 17 00:00:00 2001 From: Filipe Marcelino Date: Mon, 2 Sep 2024 01:15:02 +0100 Subject: [PATCH] Add become: true --- defaults/main.yml | 2 +- tasks/setup-Debian.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index c48f401..41addea 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -41,7 +41,7 @@ docker_add_repo: true docker_repo_url: https://download.docker.com/linux # Used only for Debian/Ubuntu/Pop!_OS/Linux Mint. Switch 'stable' to 'nightly' if needed. -docker_apt_release_channel: nightly +docker_apt_release_channel: stable # docker_apt_ansible_distribution is a workaround for Ubuntu variants which can't be identified as such by Ansible, # and is only necessary until Docker officially supports them. docker_apt_ansible_distribution: "{{ 'ubuntu' if ansible_distribution in ['Pop!_OS', 'Linux Mint'] else ansible_distribution }}" diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 8ded1e0..cf4c2fc 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -34,6 +34,7 @@ mode: "0755" - name: Add Docker apt key. + become: true ansible.builtin.get_url: url: "{{ docker_apt_gpg_key }}" dest: /etc/apt/keyrings/docker.asc