Add become: true

This commit is contained in:
Filipe Marcelino 2024-09-02 01:15:02 +01:00
parent cf855d1b03
commit 263376925b
2 changed files with 2 additions and 1 deletions

View File

@ -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 }}"

View File

@ -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