Skip to content

Commit 620bb29

Browse files
andrewlukoshkoyoctozepto
authored andcommitted
Use ansible_distribution_release instead of ansible_lsb.codename
ansible_lsb.codename fact needs lsb-release package installed but it absent in Debian 10 minimal install. It's better to use ansible_distribution_release fact which contain the same value and don't need extra packages. Change-Id: Ifda71047ab041b4b9838e3480d6a301a43c1c156 (cherry picked from commit 7c37922)
1 parent 41677e9 commit 620bb29

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/baremetal/defaults

1 file changed

+1
-1
lines changed

ansible/roles/baremetal/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ enable_docker_repo: true
44

55
# Docker APT repository configuration.
66
docker_apt_url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}"
7-
docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_lsb.codename }} stable"
7+
docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_distribution_release }} stable"
88
docker_apt_key_file: "gpg"
99
docker_apt_key_id: "0EBFCD88"
1010
docker_apt_package: "docker-ce"

0 commit comments

Comments
 (0)