From 3ba3d3a01b0229feee61c15e4c21a2bcea8107f9 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 22 Jan 2021 12:00:05 +0100 Subject: [PATCH] Update to 2021-01-22 12:00 --- roles/repo_zfs/defaults/main.yml | 2 +- roles/repo_zfs/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/repo_zfs/defaults/main.yml b/roles/repo_zfs/defaults/main.yml index 56e0764..fe4652f 100644 --- a/roles/repo_zfs/defaults/main.yml +++ b/roles/repo_zfs/defaults/main.yml @@ -3,4 +3,4 @@ zfs_mod: kmod # Can be stable or testing -zfs_branch: stable +zfs_branch: "{{ ansible_distribution_version }}" diff --git a/roles/repo_zfs/tasks/main.yml b/roles/repo_zfs/tasks/main.yml index 2a851ae..6831a72 100644 --- a/roles/repo_zfs/tasks/main.yml +++ b/roles/repo_zfs/tasks/main.yml @@ -40,7 +40,7 @@ yum_repository: name: zfs description: ZFS On Linux - baseurl: http://download.zfsonlinux.org/epel{{ (zfs_branch == 'testing') | ternary('-testing','') }}/{{ ansible_distribution_version }}/kmod/$basearch/ + baseurl: http://download.zfsonlinux.org/epel/{{ zfs_branch }}{{ (zfs_mod == 'kmod') | ternary('/kmod','') }}/$basearch/ gpgcheck: True gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-zfsonlinux skip_if_unavailable: True