fix condition by fixing variable

This commit is contained in:
Raphael Kastner 2019-10-28 14:40:00 +01:00
parent f5597d57f6
commit 19516b99c1
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ docker_apt_release_channel: stable
docker_apt_arch: amd64
docker_apt_repository: "deb [arch={{ docker_apt_arch }}] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}"
docker_apt_ignore_key_error: true
docker_apt_version:
docker_apt_version: ''
# Used only for RedHat/CentOS/Fedora.
docker_yum_repo_url: https://download.docker.com/linux/{{ (ansible_distribution == "Fedora") | ternary("fedora","centos") }}/docker-{{ docker_edition }}.repo

View File

@ -43,4 +43,4 @@
template:
src: apt-preferences-docker.j2
dest: /etc/apt/preferences.d/docker
when: docker_apt_version is defined and not empty
when: docker_apt_version | length > 0