From b6f6b1b66cfcdfd272ed49160ece562fc714a8db Mon Sep 17 00:00:00 2001 From: Stephen Benjamin Date: Fri, 2 Feb 2018 10:54:16 -0500 Subject: [PATCH] Support fedora --- defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3573df1..3ebf5a7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,7 +13,7 @@ docker_compose_path: /usr/local/bin/docker-compose docker_apt_release_channel: stable docker_apt_repository: "deb https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} {{ docker_apt_release_channel }}" -# Used only for RedHat/CentOS. -docker_yum_repo_url: https://download.docker.com/linux/centos/docker-{{ docker_edition }}.repo +# 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 docker_yum_repo_enable_edge: 0 docker_yum_repo_enable_test: 0