mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-26 17:51:03 +02:00
fix condition by fixing variable
This commit is contained in:
parent
f5597d57f6
commit
19516b99c1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user