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
This commit is contained in:
parent
520abc8800
commit
7c37922fa7
@ -4,7 +4,7 @@ enable_docker_repo: true
|
||||
|
||||
# Docker APT repository configuration.
|
||||
docker_apt_url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}"
|
||||
docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_lsb.codename }} stable"
|
||||
docker_apt_repo: "deb {{ docker_apt_url }} {{ ansible_distribution_release }} stable"
|
||||
docker_apt_key_file: "gpg"
|
||||
docker_apt_key_id: "0EBFCD88"
|
||||
docker_apt_package: "docker-ce"
|
||||
|
Loading…
x
Reference in New Issue
Block a user